Skip to content

Instantly share code, notes, and snippets.

@awareness481
Last active May 27, 2020 04:17
Show Gist options
  • Save awareness481/99693b41d4a12a5b7ba3bfe24e29c348 to your computer and use it in GitHub Desktop.
Save awareness481/99693b41d4a12a5b7ba3bfe24e29c348 to your computer and use it in GitHub Desktop.
error - ./node_modules/next/dist/client/next-dev.js
Error: Cannot find module 'core-js/modules/es6.regexp.to-string'
Require stack:
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\lina
ria\lib\loader.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\lina
ria\loader.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\load
er-runner\lib\loadLoader.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\load
er-runner\lib\LoaderRunner.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\webp
ack\lib\NormalModule.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\webp
ack\lib\NormalModuleFactory.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\webp
ack\lib\Compiler.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\webp
ack\lib\webpack.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\server\hot-reloader.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\server\next-dev-server.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\server\next.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\server\lib\start-server.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\cli\next-dev.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\bin\next
Error: Cannot find module 'C:\Users\p\Documents\create-next-app tests\with-linar
ia-test\.next\server\static\development\pages\_document'
Require stack:
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\next-server\server\load-components.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\next-server\server\api-utils.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\next-server\server\next-server.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\server\next.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\server\lib\start-server.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\cli\next-dev.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\bin\next
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Module.require (internal/modules/cjs/loader.js:1042:19)
at require (internal/modules/cjs/helpers.js:77:18)
at loadComponents (C:\Users\p\Documents\create-next-app tests\with-linaria-t
est\node_modules\next\dist\next-server\server\load-components.js:1:872)
at DevServer.findPageComponents (C:\Users\p\Documents\create-next-app tests\
with-linaria-test\node_modules\next\dist\next-server\server\next-server.js:50:18
9)
at DevServer.renderErrorToHTML (C:\Users\p\Documents\create-next-app tests\w
ith-linaria-test\node_modules\next\dist\next-server\server\next-server.js:99:114
)
at DevServer.renderErrorToHTML (C:\Users\p\Documents\create-next-app tests\w
ith-linaria-test\node_modules\next\dist\server\next-dev-server.js:22:915)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async DevServer.render (C:\Users\p\Documents\create-next-app tests\with-l
inaria-test\node_modules\next\dist\next-server\server\next-server.js:48:236)
at async Object.fn (C:\Users\p\Documents\create-next-app tests\with-linaria-
test\node_modules\next\dist\next-server\server\next-server.js:35:852)
at async Router.execute (C:\Users\p\Documents\create-next-app tests\with-lin
aria-test\node_modules\next\dist\next-server\server\router.js:28:28)
at async DevServer.run (C:\Users\p\Documents\create-next-app tests\with-lina
ria-test\node_modules\next\dist\next-server\server\next-server.js:44:494)
at async DevServer.handleRequest (C:\Users\p\Documents\create-next-app tests
\with-linaria-test\node_modules\next\dist\next-server\server\next-server.js:13:1
33) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\next-server\\server\\load-components.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\next-server\\server\\api-utils.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\next-server\\server\\next-server.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\server\\next.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\server\\lib\\start-server.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\cli\\next-dev.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\bin\\next'
]
}
Error: Cannot find module 'C:\Users\p\Documents\create-next-app tests\with-linar
ia-test\.next\server\static\development\pages\_document'
Require stack:
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\next-server\server\load-components.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\next-server\server\api-utils.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\next-server\server\next-server.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\server\next.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\server\lib\start-server.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\cli\next-dev.js
- C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\next
\dist\bin\next
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Module.require (internal/modules/cjs/loader.js:1042:19)
at require (internal/modules/cjs/helpers.js:77:18)
at loadComponents (C:\Users\p\Documents\create-next-app tests\with-linaria-t
est\node_modules\next\dist\next-server\server\load-components.js:1:872)
at DevServer.findPageComponents (C:\Users\p\Documents\create-next-app tests\
with-linaria-test\node_modules\next\dist\next-server\server\next-server.js:50:18
9)
at DevServer.renderErrorToHTML (C:\Users\p\Documents\create-next-app tests\w
ith-linaria-test\node_modules\next\dist\next-server\server\next-server.js:99:114
)
at DevServer.renderErrorToHTML (C:\Users\p\Documents\create-next-app tests\w
ith-linaria-test\node_modules\next\dist\server\next-dev-server.js:22:915)
at async DevServer.render (C:\Users\p\Documents\create-next-app tests\with-l
inaria-test\node_modules\next\dist\next-server\server\next-server.js:48:236)
at async Object.fn (C:\Users\p\Documents\create-next-app tests\with-linaria-
test\node_modules\next\dist\next-server\server\next-server.js:35:852)
at async Router.execute (C:\Users\p\Documents\create-next-app tests\with-lin
aria-test\node_modules\next\dist\next-server\server\router.js:28:28)
at async DevServer.run (C:\Users\p\Documents\create-next-app tests\with-lina
ria-test\node_modules\next\dist\next-server\server\next-server.js:44:494)
at async DevServer.handleRequest (C:\Users\p\Documents\create-next-app tests
\with-linaria-test\node_modules\next\dist\next-server\server\next-server.js:13:1
33) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\next-server\\server\\load-components.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\next-server\\server\\api-utils.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\next-server\\server\\next-server.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\server\\next.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\server\\lib\\start-server.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\cli\\next-dev.js',
'C:\\Users\\p\\Documents\\create-next-app tests\\with-linaria-test\\node_mod
ules\\next\\dist\\bin\\next'
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment