-
-
Notifications
You must be signed in to change notification settings - Fork 874
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
--example with-afterjs project does not start due to webpack error #904
Comments
have the same error. |
Same error with "with-react-loadable". Seems like "syntax-dynamic-import" is missing, but adding it to .babelrc doesn't help:/ |
As the above comment shows, this a problem in npm that breaks webpack (starting in 4.29.0). webpack issue: webpack/webpack#8656 There was almost a fix in npm, but it broke another use case, so it was reverted. npm says a rewrite of the tree builder will be needed to fix this, with no ETA. So, apparently, you can avoid this problem by using yarn, or here's a very simple workaround with npm:
The problem is that npm can't figure out how to satisfy the peer dependency of acorn-dynamic-import on acorn. The workaround installs the latest acorn (adding it to your package.json) and ensures that webpack is using it. As someone who wanted to try out After.js for the first time, it's not at all encouraging to stumble upon a problem that breaks the project's hello world on npm, and then to learn that it's been broken for more than a month. I know that the underlying problem is with npm, but there are things that could be done until it is solved:
|
I just took a quick look to see if I could modify the example. The instructions in CONTRIBUTING.md seem out of date: there's no scripts directory and no bootstrap script in package.json. Are any newer pointers available? |
Is there no updates for this yet? Coming over from the after.js repo, this is a serious issue :/ |
That comment worked for me |
My Environment:
node v10.15.1
npm 6.4.1
I've -g installed create-razzle-app. I wanted to try the
--example with-afterjs
project, so I installed like so:create-razzle-app --example with-afterjs poca
(poca is my app)All good and then I'm asked to cd into poca and run
npm start
.This throws an error:
Seems to be a webpack loader issue.
I don't get any error if I create a new razzle app without the
--example with-afterjs
option.Is this a known issue?
The text was updated successfully, but these errors were encountered: