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

TypeError in Node 20 #6

Open
altearius opened this issue Mar 18, 2024 · 1 comment
Open

TypeError in Node 20 #6

altearius opened this issue Mar 18, 2024 · 1 comment

Comments

@altearius
Copy link

I am encountering an error when attempting to require, import, or await import this module, using Node.js 20. The error happens in both ESM and CJS mode. It can be replicated in the Node.js REPL:

$ node
Welcome to Node.js v20.11.0.
Type ".help" for more information.
> var HierarchicalTagsPlugin = require('swagger-ui-plugin-hierarchical-tags')
Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
    at /.../node_modules/swagger-ui-plugin-hierarchical-tags/build/index.js:6:15003
    at Module.<anonymous> (/.../node_modules/swagger-ui-plugin-hierarchical-tags/build/index.js:6:15280)
    at Module.<anonymous> (/.../node_modules/swagger-ui-plugin-hierarchical-tags/build/index.js:6:15408)
    at r (/.../node_modules/swagger-ui-plugin-hierarchical-tags/build/index.js:1:110)
    at /.../node_modules/swagger-ui-plugin-hierarchical-tags/build/index.js:1:902
@pvignaud
Copy link

pvignaud commented Jun 21, 2024

Same here, Node 20.x.x or Node 18.x.x, the folder @kael-shipman/swagger-ui-plugin-hierarchical-tags doesn't exist anymore.. I don't know if it's related to the problem.

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

No branches or pull requests

2 participants