-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
Spread Operator not building -- Webpack #3819
Comments
Is that the |
Whoops, I just added it but it still doesn't help. |
Next only compiles files inside of the next root, which in your case is root/server. You can probably use something like #3732 to compile files outside of the root. Regarding your babelrc, it should be something like this:
preset es2015 / react and the object rest spread are include inside next. |
Nvm, fixed it myself Solution in comment of this issue: vercel/next-plugins#60 Getting similar error for this is for the @zeit/next-sass package Running on node v8.1.3
Anyone know how to solve this? |
@timneutkens is there a way to ignore repo's to compile? I moved my root folder to the complete root of my project but now it's trying to compile files that I don't want next.js to compile. |
Hey guys, I'm trying to build a portion of my app in Next.js (only the portion that needs to be SSR).
I've used CRA to build most of my project and now I'm trying to migrate just one page to Next. I'm importing my redux files from a directory that's outside of the next.js dir, so for example I have
root/server/pages
is where my next.js page lives, and I'm importing fromroot/src/redux
.This is causing this issue here:
It looks like Webpack doesn't like the spread operator, but I have all of the necessary plugins for the spread operator to build in my .babelrc:
Any clue what's up?
Expected Behavior
Build runs correctly
Current Behavior
Build doesn't run
Your Environment
The text was updated successfully, but these errors were encountered: