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

Confusing Next.js build output #15071

Closed
Timer opened this issue Jul 10, 2020 · 1 comment · Fixed by #15299
Closed

Confusing Next.js build output #15071

Timer opened this issue Jul 10, 2020 · 1 comment · Fixed by #15299
Assignees
Milestone

Comments

@Timer
Copy link
Member

Timer commented Jul 10, 2020

Bug report

Describe the bug

error - ./pages/_app.js:5:37
Syntax error: Unexpected token, expected ";"

  3 | 
  4 | export default function App({ Component, pageProps }) {
> 5 |   return <Component {...pageProps} />!;
    |                                      ^
  6 | }
  7 | 
Error: Syntax error: Unexpected token, expected ";"

  3 | 
  4 | export default function App({ Component, pageProps }) {
> 5 |   return <Component {...pageProps} />!;
    |                                      ^
  6 | }
  7 | 
    at getBabelError (/Users/joe/Documents/Blog/www/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseBabel.js:4:91)
    at getModuleBuildError (/Users/joe/Documents/Blog/www/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/webpackModuleError.js:1:2469)
    at /Users/joe/Documents/Blog/www/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/index.js:1:549
    at Array.map (<anonymous>)
    at /Users/joe/Documents/Blog/www/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/index.js:1:478
    at SyncHook.eval [as call] (eval at create (/Users/joe/Documents/Blog/www/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
    at SyncHook.lazyCompileHook (/Users/joe/Documents/Blog/www/node_modules/tapable/lib/Hook.js:154:20)
    at Compilation.seal (/Users/joe/Documents/Blog/www/node_modules/webpack/lib/Compilation.js:1284:19)
    at /Users/joe/Documents/Blog/www/node_modules/webpack/lib/Compiler.js:675:18
    at /Users/joe/Documents/Blog/www/node_modules/webpack/lib/Compilation.js:1261:4

To Reproduce

Introduce a syntax error and refresh the page.

@Timer Timer self-assigned this Jul 11, 2020
@Timer Timer added this to the iteration 4 milestone Jul 11, 2020
@Timer Timer modified the milestones: iteration 4, iteration 5 Jul 13, 2020
@Timer Timer added the point: 2 label Jul 19, 2020
@Timer Timer added point: 3 and removed point: 2 labels Jul 19, 2020
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants