-
Notifications
You must be signed in to change notification settings - Fork 44
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
Module Import Error Within NextJS #70
Comments
Hi, in case you haven't solved your issue, it is not something linked to NestJS but more to a typescript/webpack config. If you don't want to alter their configuration, which can be cumbersome depending on their versions, a simple Out of interest, what is your use-case for a solidity-parser with NestJS? |
Unfortunately, that didn't seem to fix the issue. In case you misread, I am using it with NextJS, not NestJS. I just want to be able to parse some solidity code for some AST nodes on a frontend application. I got around it by using @solidity-parser on the backend instead of the frontend (for some reason, this no longer threw an error for me even though its within the same project). |
Hey @walnutwaldo can you try the fix that I mentioned here? It fixed my problem, it might help you as well. |
I encountered the same problem. Any suggestions here? Thank you. |
Hi! I'm trying to use the
@solidity-parser/parser
npm package within a Next JS typescript project. Unfortunately, when I try to import something:import {parse} from "@solidity-parser/parser"
I get this error
I haven't been able to find a similar error anywhere else on the web. It looks like it has something to do with the webpack configuration and the way the module is being imported. But the error is being caused by one of the files as a part of the latest package release.
I don't have a lot of experience in module importing so I can't tell if this is me not setting up my project correctly or if it is an issue with the release itself. Any help would be appreciated and if this is an issue with the package, I hope I can help fix it.
More details
I've also included my NextJS and Typescript configuration files which are pretty standard in case they help give insight into this issue.
tsconfig.json
:next.config.js
:The text was updated successfully, but these errors were encountered: