Which version works properly with Solidity and Truffle? - truffle

The Solidity version 0.5.0 works well with Remix online software.
When you try to use that code in Visual Studio Code it creates an error, and there is not output after truffle compile,truffle migrate.
Truffle version:
Truffle v5.0.7 (core: 5.0.7)
Solidity v0.5.0 (solc-js)
Node v8.15.0

Related

Runing npx truffle develop

This version of µWS is not compatible with your Node.js build:
Error: Cannot find module './uws_darwin_x64_108.node'
Falling back to a NodeJS implementation; performance may be degraded.
Could not find suitable configuration file.
Truffle v5.5.6 (core: 5.5.6)
Node v18.2.0
Run npx truffle develop on a command line

The package at "node_modules\#google-cloud\speech\build\src\helpers.js" attempted to import the Node standard library module "stream"

When adding #google-cloud/speech to a fresh React Native project with Expo, I am unable to implement it.
Environment details
OS: Windows 10
Node.js version: v16.14.0
npm version: 8.3.1
#google-cloud/speech version: 4.10.2
Steps to reproduce:
Create new project using expo init
Install #google-cloud/speech using npm install #google-cloud/speech
Error occurs when when using const speech = require('#google-cloud/speech');

Expo Go there was problem loading the requset app

i have run a react native with Expo application .
i used yarn package manger run the commands
yarn install
then expo start
there is an warning upper
WARNING: expo-cli has not yet been tested against Node.js v17.8.0.
If you encounter any issues, please report them to https://github.com/expo/expo-cli/issues
expo-cli supports following Node.js versions:
=12.13.0 <13.0.0 (Maintenance LTS)
=14.0.0 <15.0.0 (Active LTS)
=15.0.0 <17.0.0 (Current Release)
and expo go show this message there was problem loading the requset app
node.js version v16.14.2
Expo version 5.3.0
u are using current release version which is not yet tested with expo
use LTS version
first check you node version
go to cli then enter node -v
if it is not the required version then install the required version using the command
npm install -g node#version
the recommended version is 16.14.2 (LTS)

Error: TypeError [ERR_INVALID_REPL_INPUT]: Listeners for `uncaughtException` cannot be used in the REPL at Object.compile

I am new to truffle and I work on blockchain project so when I "migrate" in truffle develop, this error occurs. Why ? I change the version of my compiler by 4.25 in truffle-config.js but nothing has changed. Thanks in advance for your help.
This could help:
truffle migrate --reset
This works for me:
npm un -g truffle
npm i -g truffle#nodeLTS
I had this same error. I tried the other fixes posted, and Javi's did work for me. All I had to do was downgrade to node v10 from v12.
You can use n to do this:
sudo npm install -g n
sudo n stable
sudo n 10.3
Are you using node v12?
If you are using v12 then try to use v10.
You can install NVM and use node v10 in this project.
You could try
truffle develop
and then
migrate --reset
I got the same issue, and the basic solution I found out is to change the truffle version to the current version.
npm install -g truffle
which will install the current version of truffle
Truffle v5.5.9 (core: 5.5.9)
Ganache v^7.0.3
Solidity v0.5.16 (solc-js)
Node v14.17.6
Web3.js v1.5.3
previously I was using this which gave me the error,
Truffle v5.0.2 (core: 5.0.2)
Solidity v0.5.0 (solc-js)
Node v14.17.6

Error Compiling truffle project, stuck with unfound error,

I am using WSL (ubuntu 18.04) I've installed truffle, solc, and node js (npm)...
I've started a simple project in truffle and then when I compile using truffle compile. I stuck with an error
Compiling your contracts...
===========================
Error: SyntaxError: Unexpected end of input
at Object.compile (/mnt/c/Users/Test/AppData/Roaming/npm/node_modules/truffle/build/webpack:/packages/workflow-compile/legacy/index.js:72:1)
Truffle v5.1.2 (core: 5.1.2)
Node v13.5.0
I couldn't even locate this index.js file. Where could this be?
Check your contract pragma statement or truffle config.
If you might be compiling against wrong solidity compiler.

Resources