Skip to content

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

Description

@samuelh2005

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions