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

Couldn't resolve module "node:fs/promises" #8984

Closed
varbhat opened this issue May 3, 2023 · 2 comments · Fixed by #9244
Closed

Couldn't resolve module "node:fs/promises" #8984

varbhat opened this issue May 3, 2023 · 2 comments · Fixed by #9244

Comments

@varbhat
Copy link

varbhat commented May 3, 2023

🐛 bug report

I am trying to use https://unocss.dev/ with it's postcss plugin. Currently parcel can't resolve node:fs/promises which is used by unocss postcss plugin.

🎛 Configuration (.babelrc, package.json, cli command)

{
  "name": "exampleproj",
  "private": true,
  "version": "0.0.0",
  "scripts": {
    "start": "parcel index.html",
    "build": "parcel build index.html --no-source-maps --detailed-report",
    "serve": "parcel serve index.html"
  },
  "devDependencies": {
    "@parcel/optimizer-data-url": "2.0.0-nightly.1290+94b3ac40a",
    "@parcel/transformer-inline-string": "2.0.0-nightly.1290+94b3ac40a",
    "@unocss/postcss": "^0.51.8",
    "parcel": "2.0.0-nightly.1288",
    "postcss": "^8.4.23",
  }
}

🤔 Expected Behavior

Build without any issues

😯 Current Behavior

image

💁 Possible Solution

🔦 Context

💻 Code Sample

🌍 Your Environment

Software Version(s)
Parcel 2.0.0-nightly.1288
Node 20.0.0
npm/Yarn 9.6.5
Operating System Linux 6.1.26-1-lts
@IHIutch
Copy link

IHIutch commented Sep 11, 2023

Bumping this because I too would like to use Parcel and UnoCSS. Not sure what a good workaround would be, but I'll take any suggestions!

@IHIutch
Copy link

IHIutch commented Sep 12, 2023

Following up with a reproduction. You can check out what I'm working on in this Stackblitz

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

Successfully merging a pull request may close this issue.

3 participants