Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

fix: node prefix breaks old webpack setup #124

Closed
wants to merge 2 commits into from

Conversation

hanspagel
Copy link
Member

WIP: I’m not if it’s just the prefix that breaks Webpack yet. Need to test it.

I received this in a Docusaurus Webpack setup:

Module build failed: UnhandledSchemeError: Reading from "node:fs" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.

Copy link

changeset-bot bot commented Jun 10, 2024

🦋 Changeset detected

Latest commit: 52b617e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@scalar/openapi-parser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@hanspagel hanspagel changed the title Fix/node prefix breaks old webpack setup fix: node prefix breaks old webpack setup Jun 10, 2024
Copy link

relativeci bot commented Jun 10, 2024

#85 Bundle Size — 114.7KiB (~-0.01%).

52b617e(current) vs 72703c8 main#83(baseline)

Bundle metrics  Change 2 changes Improvement 1 improvement
                 Current
#85
     Baseline
#83
Improvement  Initial JS 114.7KiB(~-0.01%) 114.71KiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 1.04% 4.51%
No change  Chunks 45 45
No change  Assets 45 45
No change  Modules 45 45
No change  Duplicate Modules 0 0
No change  Duplicate Code 0% 0%
No change  Packages 0 0
No change  Duplicate Packages 0 0
Bundle size by type  Change 1 change Improvement 1 improvement
                 Current
#85
     Baseline
#83
Improvement  JS 114.7KiB (~-0.01%) 114.71KiB

Bundle analysis reportBranch fix/node-prefix-breaks-old-webpa...Project dashboard

@hanspagel hanspagel force-pushed the fix/node-prefix-breaks-old-webpack-setup branch from 3177946 to 52b617e Compare June 11, 2024 12:08
Copy link

cloudflare-workers-and-pages bot commented Jun 11, 2024

Deploying openapi-parser with  Cloudflare Pages  Cloudflare Pages

Latest commit: 52b617e
Status: ✅  Deploy successful!
Preview URL: https://68ca2fb4.openapi-parser.pages.dev
Branch Preview URL: https://fix-node-prefix-breaks-old-w.openapi-parser.pages.dev

View logs

@hanspagel
Copy link
Member Author

Doesn’t help. :) Got another solution, though.

@hanspagel hanspagel closed this Jun 11, 2024
@hanspagel hanspagel deleted the fix/node-prefix-breaks-old-webpack-setup branch June 21, 2024 12:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant