question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Builds Don't Work with PostCSS After Update

See original GitHub issue

In Node v17:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /tmp/workspace/node_modules/postcss-safe-parser/node_modules/postcss/package.json

In earlier versions of Node, this was just a deprecation warning:

Update this package.json to use a subpath pattern like "./*".

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:43
  • Comments:36

github_iconTop GitHub Comments

18reactions
ValeriMladenovcommented, Oct 26, 2021

Just remove yarn.lock & node_modules & run yarn

18reactions
MatthewPardinicommented, Oct 25, 2021

Nuked my node modules and yarn.lock and ran yarn install and it worked. Using cra typescript template.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application doesn't run after updating PostCSS to version 8 ...
Looking at the docs about updating plugins for using PostCSS 8.0 it seems that waiting until packages in our projects update to the...
Read more >
Install Tailwind CSS using PostCSS
Installing Tailwind CSS as a PostCSS plugin is the most seamless way to integrate it with build tools like webpack, Rollup, Vite, and...
Read more >
PostCSS API
PostCSS cleans selectors, declaration values and at-rule parameters from comments and extra spaces, but it stores origin content in raws properties. As such,...
Read more >
Bundle Stylesheets and Add LiveReload With Rollup
First, we'll continue working on that project in Part II to add support for stylesheet processing through Rollup, using PostCSS to run some...
Read more >
How to add Tailwind into a React project in under a minute
js in your root folder or just copy the following to the terminal. `touch` postcss.config.js. Then, update the file with our installed plugins...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found