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 install error #4

Open
0xspade opened this issue Mar 12, 2023 · 0 comments
Open

yarn install error #4

0xspade opened this issue Mar 12, 2023 · 0 comments

Comments

@0xspade
Copy link

0xspade commented Mar 12, 2023

yarn command already has an issue:

$ yarn
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
error react-router-dom@6.8.1: The engine "node" is incompatible with this module. Expected version ">=14". Got "12.22.12"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

however, with --ignore-engines the error will go away

$ yarn install --ignore-engines
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @parcel/config-webextension@2.8.3" has unmet peer dependency "@parcel/core@^2.8.3".
warning "@parcel/config-webextension > @parcel/config-default@2.8.3" has unmet peer dependency "@parcel/core@^2.8.3".
warning "@parcel/config-webextension > @parcel/config-default > @parcel/transformer-image@2.8.3" has unmet peer dependency "@parcel/core@^2.8.3".
warning "@parcel/config-webextension > @parcel/config-default > @parcel/transformer-js@2.8.3" has unmet peer dependency "@parcel/core@^2.8.3".
[4/4] Building fresh packages...
Done in 2.13s.

and then, yarn start has an error:

$yarn start
yarn run v1.22.19
$ parcel watch src/manifest.json --host localhost --config @parcel/config-webextension --no-content-hash --no-cache
🚨 Build failed.

@parcel/transformer-postcss: Unexpected token '.'

 [REDACTED]/spy-extension/node_modules/postcss-import/index.js:47
        if (styles.source?.input?.file) {
                          ^
  
  SyntaxError: Unexpected token '.'
      at wrapSafe (internal/modules/cjs/loader.js:915:16)
      at Module._compile (internal/modules/cjs/loader.js:963:27)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
      at Module.load (internal/modules/cjs/loader.js:863:32)
      at NodePackageManager.load ([REDACTED]/spy-extension/node_modules/@parcel/package-manager/lib/index.js:3375:15)
      at NodePackageManager.require ([REDACTED]/spy-extension/node_modules/@parcel/package-manager/lib/index.js:3349:21)
      at async loadPlugin ([REDACTED]/spy-extension/node_modules/@parcel/transformer-postcss/lib/loadPlugins.js:24:16)
      at async Promise.all (index 0)
      at async loadExternalPlugins ([REDACTED]/spy-extension/node_modules/@parcel/transformer-postcss/lib/loadPlugins.js:12:22)
      at async configHydrator ([REDACTED]/spy-extension/node_modules/@parcel/transformer-postcss/lib/loadConfig.js:82:17)

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