Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App not building after installing ember-service-worker #110

Open
caseyjenks opened this issue Mar 23, 2018 · 6 comments
Open

App not building after installing ember-service-worker #110

caseyjenks opened this issue Mar 23, 2018 · 6 comments

Comments

@caseyjenks
Copy link

After running ember install ember-service-worker, my app fails to build. I'm not really getting much in terms of console output, but this is what I see:

Could not start watchman
Visit https://ember-cli.com/user-guide/#watchman for more info.
DEPRECATION: Addon files were detected in `/Users/caseyjenks/sites/fitbot-client/node_modules/ember-inject-script/addon`, but no JavaScript preprocessors were found for `ember-inject-script`. Please make sure to add a preprocessor (most likely `ember-cli-babel`) to in `dependencies` (NOT `devDependencies`) in `ember-inject-script`'s `package.json`.
Warning: failed to stat /Users/caseyjenks/sites/fitbot-client/tmp/autoprefixer_filter-tmp_dest_dir-2PQnDGhJ.tmp/assets/failed.png

The deprecation warning shows up in master branch of the project, but the Warning: failed to stat... is new.

Any ideas?

Version: 0.6.12

@pvertenten
Copy link

pvertenten commented Apr 11, 2018

I see similar behavior, in that build times explode in length what might have taken 10+ seconds takes 10+ minutes. If I wait long enough I can use it.

Without ember-service-worker

time ember build
ember build 13.71s user 2.88s system 114% cpu 14.487 total

With ember-service-worker

time ember-build
ember build 855.88s user 236.00s system 117% cpu 15:32.75 total

@pvertenten
Copy link

pvertenten commented Apr 11, 2018

So I solved the issue I believe. Thought I don't have a long term solution. Maybe report the issue to ember-rails, or see what ember-service-worker is doing with the tmp directory.

The issue seems to be that ember-rails seems to leave a lot of extra things behind in the tmp directory, and this only grows over time while developing the app. I had a few GB of left over data in the tmp directory from previous runs.

...
asset_map-cache_path-hsRQ5VAH.tmp
broccoli_merge_trees-cache_path-6LVndSRy.tmp
broccoli_merge_trees-cache_path-6mz1PwG4.tmp
...

With all this left behind stuff and ember-service-worker the build seems to take very long. Not sure what the build is doing, but clearing out the tmp directory before building speeds everything up to basically normal build speed.

@drouhard
Copy link

I'm hitting the same issue. I'm using ember-cli-rails as well.

@roelzkie15
Copy link

Same thing happen to my installation as well I can't rebuild the app

@eshtadc
Copy link
Contributor

eshtadc commented Dec 14, 2018

@roelzkie15 Was your situation the same as others in this issue in that the use of ember-cli-rails is leaving a lot in tmp?

@koushik-radhakrishan
Copy link

I don't use ember-CLI-rails but still this is happening. How you guys solved this? Any working solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants