Solidity Typeerror: Cannot Read Property 'match' of Undefined
You may need to install the node modules @NiliusJulius. Become to the directory with the parcel.json and run npm install
Yeah there is an issue with node 12
Are you running truffle test from truffle develop? Or is merely truffle examination not working?
NiliusJulius
@NiliusJulius
@eggplantzzz Thanks, I don't know how I could forget the install >.< I guess that is what you get for only doing what it says on the folio...
I was running information technology from truffle develop .
Information technology works now. Practise you remember it might work with node 12 when running truffle test>
It should piece of work if you just run it directly from the control line (i.e. simply truffle test) only in that location is currently a bug in Mocha that is throwing that error.
I'm not sure if at that place are many people using Mocha like Truffle does (in a repl context) and and then I'm not sure when this will be fixed.
That is, nosotros use it in a repl context when you run it from truffle develop
Howdy, does drizzle work with react hooks and context api?
@pensivej Every bit far as I know Yes. drizzle@1.5.0 and possible to apply legacy context API as well.
dbsproject2019
@dbsproject2019_twitter
I am new to truffle and using the webpack box. When putting the control "migrate truffle", I get a "transaction non mined within 750 seconds" error. Is there any mode I can extend or entirely remove this timeout? I don't heed it taking longer. I've tried setting mocha: { enableTimeouts:false }, in the truffle-config.js file but this did not work. Any suggestions?
*truffle drift, not migrate truffle ;)
How-do-you-do, I've been trying to update to the latest Drizzle components using Context API. I am trying to use functional components and the useContext() hook. Is at that place any known outcome regarding that or am I mayhap making some devil-may-care error? Whatsoever resource y'all'd recommend ?
Fixed. I was using DrizzleContext module instead of DrizzleContext.Context
@leovigna Yeah, I was dislocated about it too. ;)
const Main = () => { const drizzleContext = useContext(DrizzleContext.Context); const { drizzle, drizzleState, initialized } = drizzleContext; //console.log(drizzle.web3.version); return ( <MyComponent drizzle={drizzle} drizzleState={drizzleState} /> ) }
@Sbaa1997 do you fix this problem
Kaden Zipfel
@KadenZipfel
Hey guys, what's the bargain with truffle install? Trying to install packages and go an out of gas error somehow trying to install on truffle v5.0.42 and I also tried rolling back to v5.0.19 and get Cannot find any published versions of 'ds-math' with the specified version range (*)
@KadenZipfel Why don't you uninstall all things(including node.js) and kickoff once again? If yous employ Windows 10, windows-build-tools should be installed successfully.
Anybody here when starting upwardly drizzle go errors installing in npm?
if i do a clean-install drizzle the errors don't appear, but it doesn't show up in my package file
npm ERR! Cannot read property 'match' of undefined
airheaded saveTree client@0.i.0
17 verbose stack TypeError: Cannot read holding 'match' of undefined
17 verbose stack at tarballToVersion (/usr/local/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:87:20)
17 verbose stack at inflatableChild (/usr/local/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:99:22)
basically the source of all this is i'm trying to npm install drizzle a thousand times in my ./client binder due to Tin't resolve 'drizzle' in '/Users/.../{project}/client/src'
OK and then information technology looks like an issue with an one-time scrypt() library causing the install to fail and is required by drizzle. info here: ethereumjs/ethereumjs-wallet#91
AAAAAAAAAAH IT WAS THE ISSUE. Human NPM and it'due south package nightmares.... downgrade to Node10 and information technology solves the issue
Hopefully people see this in the future.... it looks like it's in some ethereum libraries judging by that PR i linked. Astonishing that node12 is a big green button to click on the node website, yet how unhelpful fault messages are regarding breaking changes & dependencies requiring node versions
@brent-riva Thanks for your advice. I'm about to update node 12 LTS today just I have to stay with 10.16.iii
@KadenZipfel I retrieve you found some bug, thanks for submitting the issue!
Nabeelperson
@Nabeelperson
Howdy, slightly off topic question, simply does anyone have whatever expert pointers to how to flatten solidity contracts? I have seen some of the flatteners like solidity_flattener and truffle-flattener merely neither seem to be good at dealing with dependencies such equally openzep.
My javascript /npm knowledge is not the best so would appreciate any pointers to tutorials or repos that seem to work for you
I am trying to verify some contracts on etherscan
@Nabeelperson Etherscan supports multi-file contracts.
How practise I go the chainId for the currently connected chain from a Truffle migration script?
Web3 doesn't appear to expose the eth_chainId function.
@MicahZoltu I'chiliad non sure it is helpful for what you try to do, it is possible to become the fundamental in networks options in truffle-config like
const SimpleStorage = artifacts.require("SimpleStorage"); module.exports = function(deployer, network) { if (network === 'development') { deployer.deploy(SimpleStorage, 0); } };
@swkim109 I need the chain ID specifically, non only an identify that allows me to differentiate networks.
Howdy guys, I hit this issue "RequestError: Error: connect ETIMEDOUT 199.59.149.244:443" when unboxing a project. Whatsoever suggestions?
As part of my deployment process, I generate a contract file. Is it possible in a truffle migration to trigger a re-compile of a particular contract, which I then would reference with artifacts.require('my-contract')?
g. nicholas d'andrea
@gnidan
@MicahZoltu interesting use example. in that location's no way built-in to do that, simply you could invoke @truffle/workflow-compile yourself... although I'm not sure at which signal(s) during migrations that artifacts are loaded from disk. yous might need to force a re-compile in a separate migration file from when you lot want to artifacts.crave it
@gnidan I looked into that, but I don't run across a style to go access to the config from a migration.
g. nicholas d'andrea
@gnidan
ah, right. you could Config.detect() yourself
As far every bit I can tell, the config is not function of the context.
That wants an options parameter, which is from CLI arguments.
g. nicholas d'andrea
@gnidan
ah, yous might be able to leave that blank. at worst, you lot'll have to laissez passer in some extra info
It ways that any CLI options will exist lost. This may work in my scenario, simply information technology certainly isn't generalized.
Source: https://gitter.im/ConsenSys/truffle?at=5dbb9ccc3d669b28a012690f
0 Response to "Solidity Typeerror: Cannot Read Property 'match' of Undefined"
Post a Comment