-
Notifications
You must be signed in to change notification settings - Fork 479
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
Exception in require-from-string on Webpack: Can't resolve 'module'
#576
Comments
I'm having the same problem as you and I haven't solved it, I think it's probably because I'm not familiar with the webpack settings, because many people don't report this error, my "require-from-string":"^2.0.2" is the latest version.
|
Here's a PR that should fix this by dropping require-from-string and reverting to the old method of loading Before we merge this though, we need to be really sure that it actually works and also that it does not break the module for people not using Webpack. It passes our current tests but so did the previous versions. |
Can't resolve 'module'
Thanks, I can try to import and use it like this in a no webpack environment if that helps with testing. Are there any specific scenarios? |
Not really, we usually rely just on the tests in the repo. The change is very limited so I guess it might be enough to try it with webpack and then with some of the bigger non-webpack projects like Remix (in the browser) and Truffle/Hardhat (on node.js). Honestly, I really don't have much confidence doing changes in this repo when they might affect compatibility with various JS runtime environments. Maybe we should have a CI run that installs some of these projects and runs their test suites. We're doing something similar in the main Solidity repo by running tests of some bigger Solidity-based projects. That would be a separate task though, not required to merge this PR. |
Using solc installed via npm or by including a js script with nuxtjs
throws the following error
apparently, this has been reported on the require-from-string repo
floatdrop/require-from-string#18
downgrading to require-from-string@1.2.1 does seem to fix the issue
but then it will throw
The text was updated successfully, but these errors were encountered: