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

yarn start 遇到错误 #1

Open
aidevtao opened this issue Apr 23, 2023 · 1 comment
Open

yarn start 遇到错误 #1

aidevtao opened this issue Apr 23, 2023 · 1 comment

Comments

@aidevtao
Copy link

yarn run v1.22.19
$ craco start
node:internal/errors:490
ErrorCaptureStackTrace(err);
^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /Users/admin/Public/repos/form-nut/node_modules/react-scripts/node_modules/postcss/package.json
at new NodeError (node:internal/errors:399:5)
at exportsNotFound (node:internal/modules/esm/resolve:267:10)
at packageExportsResolve (node:internal/modules/esm/resolve:603:9)
at resolveExports (node:internal/modules/cjs/loader:569:36)
at Module._findPath (node:internal/modules/cjs/loader:643:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1068:27)
at Module._load (node:internal/modules/cjs/loader:928:27)
at Module.require (node:internal/modules/cjs/loader:1149:19)
at require (node:internal/modules/helpers:121:18)
at Object. (/Users/admin/Public/repos/form-nut/node_modules/react-scripts/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v20.0.0

@aidevtao
Copy link
Author

删除yarn.lock 和node_modules
重新安装即可

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