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

The yarn run full-build fails for me. #68

Open
ajh123 opened this issue Mar 26, 2023 · 1 comment
Open

The yarn run full-build fails for me. #68

ajh123 opened this issue Mar 26, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@ajh123
Copy link

ajh123 commented Mar 26, 2023

So, I just cloned the repository and done a yarn install and when I run yarn run full-build I get

$ yarn run full-build
yarn run v1.22.17
$ yarn run clean; NODE_ENV=production yarn run build; yarn run optimise
error Command "clean;" not found. Did you mean "clean"?
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Instead I tried to run the command like this yarn run clean && NODE_ENV=production yarn run build && yarn run optimise but I get this new error.

$ yarn run clean && NODE_ENV=production yarn run build && yarn run optimise
yarn run v1.22.17
$ rimraf build
Done in 0.18s.
yarn run v1.22.17
$ craco build
node:internal/errors:490
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in D:\projects\web\bank\KristWeb2\node_modules\postcss-safe-parser\node_modules\postcss\package.json
    at new NodeError (node:internal/errors:399:5)
    at exportsNotFound (node:internal/modules/esm/resolve:266:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:602:9)
    at resolveExports (node:internal/modules/cjs/loader:579:36)
    at Module._findPath (node:internal/modules/cjs/loader:648:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1076:27)
    at Module._load (node:internal/modules/cjs/loader:934:27)
    at Module.require (node:internal/modules/cjs/loader:1157:19)
    at require (node:internal/modules/helpers:119:18)
    at Object.<anonymous> (D:\projects\web\bank\KristWeb2\node_modules\postcss-safe-parser\lib\safe-parser.js:1:17) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v19.8.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@Lemmmy Lemmmy added the documentation Improvements or additions to documentation label Mar 26, 2023
@soudasuwa
Copy link

You are using node 19 whereas KristWeb2 is made for node 16

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

No branches or pull requests

3 participants