Questions tagged [requirejs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

Uncaught Error: Module name "web3" has not been loaded yet for context: _. Use require([]) How do I fix this? (require.js exploit the exception)

I am trying to build a simple Dapp using truffle, ganache, and metamask but when I try to connect web3.js and metamask, an error occurs. Uncaught Error: Module name "web3" has not been ...
0
votes
0answers
351 views

How do I fix this? Module name "web3" has not been loaded yet for context: _. Use require([])

I am trying to get smart contract to work with front end. I am struggling to understand why requireJS isn't allowing me to use web3js. I have tried to use this guide https://rclarke-m.medium.com/using-...
0
votes
0answers
166 views

Web3 is not a constructor

I am making a to do list application using metamask,following this tutorial and my truffle-contract.js keeps giving this error "Uncaught TypeError: Web3 is not a constructor" and references ...
1
vote
0answers
113 views

Problem when trying to deploy contract due to meteor's modules/scripts

I have my meteor project which when i run i get the following warnings: First warning: Mismatched anonymous define() module: function () { return BigNumber; } intakeDefines @ aramk_requirejs....
4
votes
1answer
979 views

How to use requirejs to import web3

I want to use web3 from loginmain.js file. My project hierarchy looks like: Project/ www/ login.html js/ login.js app/ loginmain.js lib/ jquery.js ...
1
vote
2answers
4k views

BigNumber issue — RequireJS and Web3

Here's my main.js file: require.config({ paths: { angular: '//ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min', web3: 'lib/web3', MainController: 'controllers/...