-
Notifications
You must be signed in to change notification settings - Fork 171
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
Can't use the library in reactjs #597
Comments
Hi @raxkumar Can you provide the code where you use it so that we can investigate more? |
Hi @NQPhuc , It was actually straight forward.
but when i import this package and start the react app, I am getting this error:-
|
Hi, you should import the parser like this
Also, what are the react version and @dbml/core version you are using? |
This is my package.json
|
I am still facing, Same problem. |
Uncaught runtime errors:
×
ERROR
Super expression must either be null or a function
TypeError: Super expression must either be null or a function
at _inherits (http://localhost:3000/static/js/bundle.js:9127:11)
at http://localhost:3000/static/js/bundle.js:9196:3
at ./node_modules/@dbml/core/lib/parse/ANTLR/ASTGeneration/postgres/PostgreSQLLexerBase.js (http://localhost:3000/static/js/bundle.js:9203:2)
at options.factory (http://localhost:3000/static/js/bundle.js:433157:31)
at webpack_require (http://localhost:3000/static/js/bundle.js:432586:32)
at fn (http://localhost:3000/static/js/bundle.js:432815:21)
at ./node_modules/@dbml/core/lib/parse/ANTLR/parsers/postgresql/PostgreSQLLexer.js (http://localhost:3000/static/js/bundle.js:106257:53)
at options.factory (http://localhost:3000/static/js/bundle.js:433157:31)
at webpack_require (http://localhost:3000/static/js/bundle.js:432586:32)
at fn (http://localhost:3000/static/js/bundle.js:432815:21)
The text was updated successfully, but these errors were encountered: