Skip to content

Repro repo for an issue with NextJs 12 and @deepkit/type

Notifications You must be signed in to change notification settings

lionelhorn/issues-nextjs-deepkit

Repository files navigation

When opening new shell, start with

export NODE_OPTIONS=--openssl-legacy-provider

See webpack/webpack#14532

Not working with NextJs 12

export NODE_OPTIONS=--openssl-legacy-provider
git checkout nextjs-12
yarn install
next build
info  - Creating an optimized production build  
info  - Compiled successfully

> Build error occurred
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\PROG\Issues\issues-nextjs-deepkit\node_modules\@deepkit\type\dist\esm\src\types' imported from C:\PROG\Issues\issues-nextjs-deepkit\node_modules\@deepkit
\type\dist\esm\index.js
    at new NodeError (node:internal/errors:371:5)
    at finalizeResolution (node:internal/modules/esm/resolve:394:11)
    at moduleResolve (node:internal/modules/esm/resolve:915:10)
    at defaultResolve (node:internal/modules/esm/resolve:1005:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:475:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:245:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
    at link (node:internal/modules/esm/module_job:78:36) {
  type: 'Error',
  code: 'ERR_MODULE_NOT_FOUND'
}

About

Repro repo for an issue with NextJs 12 and @deepkit/type

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published