PaloAltoNetworks / PaloAltoNetworks/docusaurus-openapi-docs
Can't resolve '@react-stately/x' and 'react/jsx-runtime'
Open
@blindaa121 is already working on this.
Since Apr 1, 2024.
bug
reviewing :eyes:
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 315
- Avg merge
- 7d 5h
- Merged PRs (30d)
- 7
Description
Describe the bug
The plugin works fine with docusaurus 2.3.0 with plugin 1.7.3. Creating this issue to document a current failure mode with the beta release.
Module not found: Error: Can't resolve '@react-stately/collections' in '/home/sfoo/marlowe-doc/.yarn/__virtual__/@nextui-org-react-virtual-d40de1b577/0/cache/@nextui-org-react-npm-1.0.0-beta.9-dbg2-7352ab2338-557fcd4d23.zip/node_modules/@nextui-org/react/esm/dropdown/base'
Module not found: Error: Can't resolve '@react-stately/collections' in '/home/sfoo/marlowe-doc/.yarn/__virtual__/@nextui-org-react-virtual-d40de1b577/0/cache/@nextui-org-react-npm-1.0.0-beta.9-dbg2-7352ab2338-557fcd4d23.zip/node_modules/@nextui-org/react/esm/dropdown'
Module not found: Error: Can't resolve '@react-stately/menu' in '/home/sfoo/marlowe-doc/.yarn/__virtual__/@nextui-org-react-virtual-d40de1b577/0/cache/@nextui-org-react-npm-1.0.0-beta.9-dbg2-7352ab2338-557fcd4d23.zip/node_modules/@nextui-org/react/esm/dropdown'
Module not found: Error: Can't resolve 'react/jsx-runtime' in '/home/sfoo/marlowe-doc/.yarn/__virtual__/react-live-virtual-da37983e26/0/cache/react-live-npm-4.1.3-3049f035ae-60faeda713.zip/node_modules/react-live/dist'
Did you mean 'jsx-runtime.js'?
BREAKING CHANGE: The request 'react/jsx-runtime' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
[ERROR] Client bundle compiled with errors therefore further build is impossible.
Steps to reproduce
- Upgrade to docusaurus v2.4.1
- Upgrade
docusaurus-plugin-openapi-docsanddocusaurus-theme-openapi-docsto 2.0.0-beta.3 yarnto install packagesyarn buildyields the error above
Context
Although the plugin works on an older version, I prefer not to incur tech debt and forced to downgrade because of a plugin.
Your Environment
Using nvm for node.
- Version used:
- Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3): node v19.3.0
- Operating System and version (desktop or mobile): linux
- Link to your project: -
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.