Skip to content

yarn install error #4

@0xspade

Description

@0xspade

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions