-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Long time Rails User; First Time Elixir User - Static Assets Issue with preset2015 #1574
Comments
@fuzzygroup you might find some help in #1410 |
There was a lot of very interesting information in #1410 but the real fix (at least for me) was:
That does fix everything. None of the other suggestions - re-installing node, deleting node_modules, npm clean cache, updating brunch-config.js, etc made any difference. Apparently the .babelrc file is present in the master branch of phoenix not but copied into generated apps. I might suggest that making this automatic (copying it into generated apps) would be a good idea given how long it took to sort this out (most of an evening). Thanks! |
Alternative, rather than creating a .babelrc file, you can do the following
|
For me, it turns out to be that I have a Create a |
Hi,
I'm trying to experiment with Elixir and I keep getting problems with asset pipeline. Specifically:
02 Mar 20:40:07 - error: Compiling of web/static/js/app.js failed. Couldn't find preset "es2015" relative to directory "/Users/sjohnson/elixir/phoenix" ; Compiling of web/static/js/socket.js failed. Couldn't find preset "es2015" relative to directory "/Users/sjohnson/elixir/phoenix"
Brand new install of elixir, erlang, node, npm, brunch OSX 10.10.2
Environment
Erlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Elixir 1.2.3
locked at 0.9.2 (fs)
ok
locked at 0.10.0 (gettext)
ok
locked at 1.2.1 (ranch)
ok
locked at 2.1.0 (poison)
ok
locked at 137481d
ok
locked at 1.0.2 (cowlib)
ok
locked at 1.0.4 (cowboy)
ok
locked at 1.1.2 (plug)
ok
locked at 2.5.0 (phoenix_html)
ok
locked at f1d77c1
ok
locked at 1.0.3 (phoenix_live_reload)
ok
v5.7.0
3.8.0
OSX 10.10.2
I looked thru the closed issue here: #1545 and followed all the steps but no luck.
Any suggestions? Thanks in advance.
The text was updated successfully, but these errors were encountered: