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

Package subpath './lib/parser' is not defined by "exports" in #4

Open
liudonghua123 opened this issue Nov 29, 2022 · 0 comments
Open

Comments

@liudonghua123
Copy link

Hi, when I tried to execute yarn dev, I got the following errors.

D:\code\node\virtualpiano>node -v
v18.12.1

D:\code\node\virtualpiano>npm -v
8.18.0

D:\code\node\virtualpiano>
D:\code\node\virtualpiano>npx browserslist@latest --update-db
Need to install the following packages:
  [email protected]
Ok to proceed? (y)
Latest version:     1.0.30001434
Installed version:  none
Removing old caniuse-lite from lock file
Installing new caniuse-lite version
$ yarn add -W caniuse-lite
Cleaning package.json dependencies from caniuse-lite
$ yarn remove -W caniuse-lite
caniuse-lite has been successfully updated

No target browser changes

D:\code\node\virtualpiano>yarn dev
yarn run v1.22.19
$ next dev
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/parser' is not defined by "exports" in D:\code\node\virtualpiano\node_modules\next\node_modules\postcss\package.json
    at new NodeError (node:internal/errors:393:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:358:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:668:3)
    at resolveExports (node:internal/modules/cjs/loader:529:36)
    at Module._findPath (node:internal/modules/cjs/loader:569:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at 552 (D:\code\node\virtualpiano\node_modules\next\dist\compiled\postcss-scss\scss-syntax.js:1:11590)
    at __webpack_require__ (D:\code\node\virtualpiano\node_modules\next\dist\compiled\postcss-scss\scss-syntax.js:1:11735)
    at 270 (D:\code\node\virtualpiano\node_modules\next\dist\compiled\postcss-scss\scss-syntax.js:1:400)
    at __webpack_require__ (D:\code\node\virtualpiano\node_modules\next\dist\compiled\postcss-scss\scss-syntax.js:1:11735)
    at 327 (D:\code\node\virtualpiano\node_modules\next\dist\compiled\postcss-scss\scss-syntax.js:1:260)
    at __webpack_require__ (D:\code\node\virtualpiano\node_modules\next\dist\compiled\postcss-scss\scss-syntax.js:1:11735)
    at 845 (D:\code\node\virtualpiano\node_modules\next\dist\compiled\postcss-scss\scss-syntax.js:1:3733) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

D:\code\node\virtualpiano>
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

1 participant