ReferenceError: require is not defined .js
Unsolved
Language Bindings
-
Hello,
I'm trying to use var fpcalc = require("fpcalc") on my .js in qt creator but I got this error.
How can I solve that please
Philippe
-
-
@JonB this is not related to JS import requires module .
The code snippet is correct but when we try to use the other modules using require() code qt provides this error . such that qt have some restriction with QJSEngine .
We are allowed only to write some base scripts , but we cannot execute all modules of JS in qt JS -
6 years later
you ok, dude?