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

soljson.cwrap is not a function #7

Open
arminshoughi opened this issue May 5, 2021 · 7 comments
Open

soljson.cwrap is not a function #7

arminshoughi opened this issue May 5, 2021 · 7 comments

Comments

@arminshoughi
Copy link

arminshoughi commented May 5, 2021

Hi
When i try to import it in my angular project i get this warning in terminal :

WARNING in ./~/ejs/lib/ejs.js
require.extensions is not supported by webpack. Use a loader instead.
@ ./~/bpmn-sol/dist/models/models.parsers.js 6:10-24
@ ./~/bpmn-sol/dist/models/models.controller.js
@ ./~/bpmn-sol/dist/index.js
@ ./src/app/modeler/modeler.component.ts
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
 
WARNING in ./~/ejs/lib/ejs.js
require.extensions is not supported by webpack. Use a loader instead.
@ ./~/bpmn-sol/dist/models/models.parsers.js 6:10-24
@ ./~/bpmn-sol/dist/models/models.controller.js
@ ./~/bpmn-sol/dist/index.js
@ ./src/app/modeler/modeler.component.ts
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts

WARNING in ./~/ejs/lib/ejs.js
374:11-18 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 
WARNING in ./~/ejs/lib/ejs.js
375:2-9 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./~/lazy-debug-legacy/src/functions.js
62:15-40 Critical dependency: the request of a dependency is an expression
 
WARNING in ./~/lazy-debug-legacy/src/functions.js
87:8-28 Critical dependency: the request of a dependency is an expression

and get this error in browser :

Uncaught TypeError: soljson.cwrap is not a function

i read this issu but not worked for me :(

@Matwog
Copy link
Collaborator

Matwog commented May 7, 2021

@arminshoughi796 Which node version are you using in your project?

@arminshoughi
Copy link
Author

@arminshoughi796 Which node version are you using in your project?

Latest version, 14.
I tried to use another version like 10, 11 but still got same error.

@Matwog
Copy link
Collaborator

Matwog commented May 7, 2021

Latest version, 14.
I tried to use another version like 10, 11 but still got same error.

Could you please try to remove the package and reinstall it to your project and run it at node v14.14.0 and confirm if you still get the error ?

@arminshoughi
Copy link
Author

Latest version, 14.
I tried to use another version like 10, 11 but still got same error.

Could you please try to remove the package and reinstall it to your project and run it at node v14.14.0 and confirm if you still get the error ?

I do that but again got a "soljson.cwrap is not a function" error again.

@Matwog
Copy link
Collaborator

Matwog commented May 7, 2021

I do that but again got a "soljson.cwrap is not a function" error again.

I will take a look this weekend. Hopefully I can help you resolve.

@LiviuLvu
Copy link

getting same error on:
truffle compile

any news on this error?
I tried node 8, 10, 12, 14, 16
in node 10 it does nothing
the rest throw error:
soljson.cwrap is not a function

@LiviuLvu
Copy link

getting same error on: truffle compile

any news on this error? I tried node 8, 10, 12, 14, 16 in node 10 it does nothing the rest throw error: soljson.cwrap is not a function

Update: changing the compiler to older version fixed the issue

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

3 participants