Skip to content

Styled-jsx module not found #951

@timneutkens

Description

@timneutkens

I believe this is related to #926.

All modules get absolute paths except styled-jsx.

For example in .next/dist/pages/_error.js.
You can try this with the custom-server example by going to a 404 route. /example for example.

Error: Cannot find module 'styled-jsx/style'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> .next/dist/pages/_error.js:27:14)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3) code: 'MODULE_NOT_FOUND' }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions