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

Ant Design example doesn't work #5298

Closed
SebaBoler opened this issue Sep 26, 2018 · 3 comments
Closed

Ant Design example doesn't work #5298

SebaBoler opened this issue Sep 26, 2018 · 3 comments
Labels
good first issue Easy to fix issues, good for newcomers

Comments

@SebaBoler
Copy link

Bug report

Example Next.js with and doesn't work

npx create-next-app --example with-ant-design with-ant-design-app
cd with-ant-design-app
yarn
yarn dev

Compilation end good but when I trying to open localhost:3000 I get Server internal Error

Describe the bug

ERROR Failed to compile with 1 errors 13:25:21

error in ./pages/index.js

Module build failed (from ./node_modules/next/dist/build/webpack/loaders/next-babel-loader.js):
Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.
at validatePlugins (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/parser/lib/index.js:10421:13)
at getParser (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/parser/lib/index.js:10478:5)
at parse (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/parser/lib/index.js:10462:12)
at parser (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/core/lib/transformation/normalize-file.js:170:34)
at normalizeFile (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/core/lib/transformation/normalize-file.js:138:11)
at runSync (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/core/lib/transformation/index.js:44:43)
at runAsync (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/core/lib/transformation/index.js:35:14)
at process.nextTick (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/core/lib/transform.js:34:34)
at process._tickCallback (internal/process/next_tick.js:61:11)

@ multi ./pages/index.js

{ Error: Cannot find module '/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/.next/server/static/development/pages/_document'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at _callee3$ (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/next/dist/server/render.js:227:17)
at tryCatch (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js:5:24)
at _next (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js:27:9) code: 'MODULE_NOT_FOUND' }
{ Error: Cannot find module '/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/.next/server/static/development/pages/_document'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at _callee3$ (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/next/dist/server/render.js:227:17)
at tryCatch (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js:5:24)
at _next (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js:27:9) code: 'MODULE_NOT_FOUND' }
{ Error: Cannot find module '/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/.next/server/static/development/pages/_document'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at _callee3$ (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/next/dist/server/render.js:227:17)
at tryCatch (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js:5:24)
at _next (/Users/sebastianpietrzak/Programming/NextJs/with-ant-design-app/node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js:27:9)
at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' }

@timneutkens timneutkens added help wanted good first issue Easy to fix issues, good for newcomers labels Sep 26, 2018
@gatezh
Copy link

gatezh commented Sep 27, 2018

This issue is already addressed #5232

@timneutkens
Copy link
Member

Fixed in #5298

@timneutkens
Copy link
Member

Thanks @gatezh!

@lock lock bot locked as resolved and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Easy to fix issues, good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants