-
Notifications
You must be signed in to change notification settings - Fork 304
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Trying to add this package to my docusaurus 2.2 project, but I get an error now when I try to start it up.
Expected behavior
Docusaurus starts up.
Current behavior
failure:
Module not found: Error: Can't resolve 'url' in '/Users/ianvs/code/defined/dn-docs/node_modules/@paloaltonetworks/postman-code-generators/codegens/csharp-restsharp/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "url": require.resolve("url/") }'
- install 'url'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "url": false }
client (webpack 5.75.0) compiled with 1 error
Possible solution
Steps to reproduce
- Clone https://github.com/IanVS/repro-docusaurus-openapi-issue
npm inpx docusaurus gen-api-docs allnpm start
The error happens.
Context
I'm unable to use this plugin.
Your Environment
- Version used: 1.5.2
- Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3): node 18, Brave browser latest.
- Operating System and version (desktop or mobile): macos
- Link to your project: https://github.com/IanVS/repro-docusaurus-openapi-issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working