MY truffle version
Truffle v5.7.1 (core: 5.7.1)
Ganache v7.6.0
Solidity - 0.8.17 (solc-js)
Node v19.3.0
Web3.js v1.8.1
Failed to fetch the Solidity compiler from the following locations:
your text`https://relay.trufflesuite.com/solc/emscripten-wasm32/,https://binaries.soliditylang.org/emscripten-wasm32/,https://relay.trufflesuite.com/solc/emscripten-asmjs/,https://binaries.soliditylang.org/emscripten-asmjs/,https://solc-bin.ethereum.org/bin/,https://ethereum.github.io/solc-bin/bin/. Are you connected to the internet?
and nothing inside truffle files (Migrations , contracts , test and token_sell files).. All are empty
Thank You
#Truffle #Solidity #Nodejs #blockchain #Ganache
I am new to truffle , unable to run truffle compile , you can see my error, I have already tried available solution on stakoverflow but I am unable to fix error.
Please Help
Thank you 🙏
Truffle in new versions doesn't create Migration.sol contract and its script inside the migrations folder. So when you run "truffle init" command, you see the empty contracts and migrations folders.
You can use "truffle unbox" instead of "truffle init". With this command, you'll have a sample project with many useful files and configurations. Although if you don't need each of them, simply delete that.
Source:
https://trufflesuite.com/docs/truffle/quickstart/
Related
I'm completely new to React, Node, NPM, and CodeMix in Eclipse. I'm a veteran java developer and so want to use eclipse over VSCode for familiarity. I'm following this tutorial:
https://www.genuitec.com/react-tutorial-getting-started/
I get to step 5 and run
react-scripts start
The result:
./src/index.js
Module not found: Can't resolve 'react/jsx-dev-runtime' in 'C:\temp\workspace\CCFPortal\src'
I created my project via the new project to create a React project. The wizard added all the standard code. Bringing up the terminal gave me some issues because the terminal doesn't seem to set the path to bring nodejs.exe into scope, so I did it manually in the terminal window. Adjusting the properties in window->preferences terminal+ doesn't seem to ever take effect.
I did the following in npm (in addition to the steps in the tutorial) because there were two 'warnings' in the markers view that suggested it. As near as I can tell, all commands were successful whether from the tutorial or these two (though it does flag some 'vulnerabilities' in npm that I force fixed).
npm install #types/react
npm install #types/react-dom
It is indeed true that there is no react/jsx-dev-runtime under that src folder. There's NOTHING there but the src. But I'm unclear why it wasn't there given that I ran npm install and the other things suggested in the tutorial.
Can someone help explain my pathing issue in the terminal and especially why npm is doing this when I run react-scripts start?
When trying to truffle compile smart contracts and deploy them to an RPC testnet, I keep encountering
TypeError: resolver.resolve is not a function
at Profiler. (/opt/homebrew/Cellar/truffle/5.3.6/libexec/lib/node_modules/truffle/build/webpack:/packages/compile-common/dist/src/profiler/profiler.js:55:1).
In visual studio code I can't find resolver.resolve anywhere in my code and even cloning projects straight from github it always displays this message when truffle compiling. I have searched everywhere for the resolution and tried debugging myself in the terminal and my current thinking is it's a webpack error but I can't figure out how to solve it. Any help would be greatly appreciated!
I was also in same situation then i find the solution. Follow these steps
Remove node_modules directory & package-lock.json (Not package.json)
Go to your cli & run npm install command
You are done
Hope this solve your problem
I got this error when I just download and npm/install/run this angular based project.
https://github.com/OpenClassrooms-Student-Center/dwj-projet6
Instructions :
Clone project
Execute npm install
Execute npm start.
API execution on http://localhost:3000
Errors
ng serve
Your global Angular CLI version (11.2.6) is greater than your local version (7.0.7). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Schema validation failed with the following errors:
Data path ".builders['app-shell']" should have required property 'class'.
Error: Schema validation failed with the following errors:
Data path ".builders['app-shell']" should have required property 'class'.
at MergeMapSubscriber.project (C:\Users\Phil\Desktop\Beta\dwj-projet6\node_modules\#angular-devkit\core\src\workspace\workspace.js:215:42)
at MergeMapSubscriber._tryNext (C:\Users\Phil\Desktop\Beta\dwj-projet6\node_modules\rxjs\internal\operators\mergeMap.js:69:27)
at MergeMapSubscriber._next (C:\Users\Phil\Desktop\Beta\dwj-projet6\node_modules\rxjs\internal\operators\mergeMap.js:59:18)
at MergeMapSubscriber.Subscriber.next (C:\Users\Phil\Desktop\Beta\dwj-projet6\node_modules\rxjs\internal\Subscriber.js:67:18)
at MergeMapSubscriber.notifyNext (C:\Users\Phil\Desktop\Beta\dwj-projet6\node_modules\rxjs\internal\operators\mergeMap.js:92:26)
at InnerSubscriber._next (C:\Users\Phil\Desktop\Beta\dwj-projet6\node_modules\rxjs\internal\InnerSubscriber.js:28:21)
at InnerSubscriber.Subscriber.next (C:\Users\Phil\Desktop\Beta\dwj-projet6\node_modules\rxjs\internal\Subscriber.js:67:18)
at MapSubscriber._next (C:\Users\Phil\Desktop\Beta\dwj-projet6\node_modules\rxjs\internal\operators\map.js:55:26)
at MapSubscriber.Subscriber.next (C:\Users\Phil\Desktop\Beta\dwj-projet6\node_modules\rxjs\internal\Subscriber.js:67:18)
at SwitchMapSubscriber.notifyNext (C:\Users\Phil\Desktop\Beta\dwj-projet6\node_modules\rxjs\internal\operators\switchMap.js:86:26)
Thank you
It's works fine for me.
Try below way maybe it help you
Solution 1: Delete node_modules folder and run npm install.
Solution 2: I think you should decrease your angular CLI version, try with CLI version 8.
I have been running my code which involves deployment of smart contract to Ethereum Ropsten network. I ran this successfully for some time but last week did installed another software after which I started getting these errors:
command: solc --combined-json abi,asm,ast,bin,bin-runtime,clone-bin,devdoc,interface,opcodes,userdoc
return code: 1
stderr:
stdout:
Invalid option to --combined-json: clone-bin
I have no clue why I'm getting them. Anyone can help?
Ok I have solution now. Solidity has a newer version of solidity which is v0.5.1 which is not compatible with py-solc so what should be done to following the instructions here install version 0.4.25 and set SOLC_BINARY env pointing to your binaries.
I'm trying to learn cucumber and so far got a grip on installing nodejs, cucumber, creating package.json, storing features files and steps. But when I'm trying to run using windows command prompt, I'm getting the below shown error.
project structure
features
- example.feature
- step_definitions
- steps.js
- support (nothing here yet)
node_modules (cucumber installed locally)
package.json
I started executing commands from the bin folder to ensure cucumberjs works and it echo'd out the version number 3.1.0
C:\Test Project\node_modules\.bin>cucumberjs -v
and then began to run the feature file
C:\Test Project\node_modules\.bin>cucumberjs "C:\Test Project\features\example.feature"
and it errors here
Note: If i install the cucumber globally then it works, this error happens when I install cucumber locally
Any help pointing out where I'm going wrong will be much appreciated
I haven't figured out what's the reason behind the error but managed to run the features files by adding the following to the project package.json and running cli npm run cucumber
"scripts": {
"cucumber": "cucumberjs ./features"
},