Uncaught TypeError: soljson.cwrap is not a function
Open
bug :bug:
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 349
- Avg merge
- 8m
- Merged PRs (30d)
- 1
Description
Hello. friends.
I am trying to import solc js in react mobx project.
But when use code "var solc = require('solc')", i am getting "Type error soljson.cwrap is not function".
If anyone know the way to fix or has sample, Please teach me.
Contributor guide
No contributing guide indexed for this repository
Research direction
The report only names require('solc') in a React/MobX project and the soljson.cwrap error; start by reproducing that import with the project's package setup and inspecting the solc-js loading path. Done means the package loads in that setup without the TypeError and the supported usage is confirmed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, solidity
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100