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

Error on initialization for version 7.2.1 #153

Closed
2 of 3 tasks
niksy opened this issue Jan 12, 2022 · 8 comments
Closed
2 of 3 tasks

Error on initialization for version 7.2.1 #153

niksy opened this issue Jan 12, 2022 · 8 comments
Assignees
Labels

Comments

@niksy
Copy link

niksy commented Jan 12, 2022

Reproduction link

No response

Bug description

Running latest version (7.2.1) produces following error in console:

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 Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> ({PATH}/node_modules/postcss-preset-env/dist/index.cjs:1:328)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Actual Behavior

No response

Expected Behavior

No response

Can you reproduce it with npx @csstools/csstools-cli <plugin-name> minimal-example.css?

No response

npx Output

No response

Extra config

No response

What plugin are you experiencing this issue on?

No response

Plugin version

7.2.1

What OS are you experiencing this on?

No response

Node Version

12.22.5

Validations

  • Follow our Code of Conduct
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@github-actions github-actions bot added the cli label Jan 12, 2022
@romainmenke romainmenke self-assigned this Jan 12, 2022
@romainmenke
Copy link
Member

@niksy Can you share any details on how you invoke postcss?

@romainmenke romainmenke added plugin-packs/postcss-preset-env bug Something isn't working and removed cli labels Jan 12, 2022
@romainmenke
Copy link
Member

@jjavierdguezas
Copy link

This is happening to me too just now with a cra app (last version)
Loading PostCSS "postcss-preset-env" plugin failed: Unexpected token '.'

@Antonio-Laguna
Copy link
Member

Releasing a new version, tests are now passing: https://github.com/csstools/postcss-plugins/runs/4788325173?check_suite_focus=true

@Antonio-Laguna
Copy link
Member

Released with 7.2.2,

@jjavierdguezas and @niksy could you review on your ends?

@jjavierdguezas
Copy link

Released with 7.2.2,

@jjavierdguezas and @niksy could you review on your ends?

working now, thanks!

@romainmenke
Copy link
Member

Thank you for reporting this!

@Queen-esther01
Copy link

I solved this error by updating tailwindcss and postcss

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

No branches or pull requests

5 participants