-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Unable to use es6 imports? #2714
Comments
Gatsby unfortunately is still on Webpack 1.x, which cannot natively understand ES modules. iirc, it is on the v2 roadmap to update to Webpack 3+. In the meantime, you'll need to Babel-fy any deps that use the Here's the v2 issue if you want to keep updated: #2641 |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues as many of them have already been resolved with the latest updates. Please make sure to update to the latest Gatsby version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
This is still an issue. |
As mentioned previously, this was an issue with the version of Webpack used in Gatsby v1.x. This should be resolved in v2.x. |
@felixfbecker can you try upgrading your Gatsby version to 2 and check if that solves the problem for you? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub issues, we have to clean some of the old issues as many of them have already been resolved with the latest updates. Please make sure to update to the latest Gatsby version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
This issue is being closed because there hasn't been any activity for at least 30 days. Feel free to open a new one if you still experience this problem 👍 |
Hi, first of all this project is great!!!
I am trying to reduce bundle size even more by using
babel
with the plugintransform-imports
and it is working fine however when I try totransform-imports
forredux-form
it is not working. In the docs ofredux-form
it mentions that it requires a bundler that can process ES modules. Is this not the case?This only occurs when trying the
transform-imports
forredux-form
, I'm also transforming other things as well as using thebabel-plugin-lodash
without any issues.It produces the following error log when trying to
build static HTML for pages
:Command line
Complete log of npm error
The text was updated successfully, but these errors were encountered: