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

Error on next dev #36

Open
zackhitch opened this issue Jan 12, 2022 · 3 comments
Open

Error on next dev #36

zackhitch opened this issue Jan 12, 2022 · 3 comments

Comments

@zackhitch
Copy link

After I've run yarn install, and then run yarn run dev I get this error: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/parser' is not defined by "exports" in ... and the app will not run.

@facinick
Copy link

facinick commented Feb 9, 2023

Getting this error:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/parser' is not defined by "exports" in /Users/facinick/Workspace/drakapoor/node_modules/next/node_modules/postcss/package.json
    at new NodeError (node:internal/errors:400:5)
    at exportsNotFound (node:internal/modules/esm/resolve:361:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:697:9)
    at resolveExports (node:internal/modules/cjs/loader:538:36)
    at Module._findPath (node:internal/modules/cjs/loader:607:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1025:27)
    at mod._resolveFilename (/Users/facinick/Workspace/drakapoor/node_modules/next/dist/build/webpack/require-hook.js:4:1784)
    at Module._load (node:internal/modules/cjs/loader:885:27)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at 552 (/Users/facinick/Workspace/drakapoor/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11590)
    at __nccwpck_require__ (/Users/facinick/Workspace/drakapoor/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11735)
    at 270 (/Users/facinick/Workspace/drakapoor/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:400)
    at __nccwpck_require__ (/Users/facinick/Workspace/drakapoor/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11735)
    at 327 (/Users/facinick/Workspace/drakapoor/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:260)
    at __nccwpck_require__ (/Users/facinick/Workspace/drakapoor/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11735) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
error Command failed with exit code 1.

Steps to reproduce:

yarn install
yarn dev

Node JS Version: v18.13.0
NPM Version: 8.19.3
Yarn Version: 1.22.19

@facinick
Copy link

facinick commented Feb 9, 2023

Update:

Started running successfully once I switched to Node version 12.13.0

@sergey-safarov
Copy link

I have successfully installed the template with PR #50
And using NodeJS 16 on Netlify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants