Truffle: "truffleframework": Unknown word.

Created on 25 May 2020  Â·  8Comments  Â·  Source: trufflesuite/truffle

  • [x] I've asked for help in the Truffle Gitter before filing this issue.

Issue

When I install and open file truffle-config.js I got 22 problems, with the same error :

"truffleframework": Unknown word.
"Infura": Unknown word.
"hdwallet": Unknown word.
"Infura": Unknown word.
"infura": Unknown word.
"gitignored": Unknown word.
"hdwallet": Unknown word.
"infura": Unknown word.
...

And I can't do

truffle test

Environment

  • Operating System: MAC OS
  • Ethereum client: ganache
  • Truffle version (truffle version): Truffle v5.1.27 (core: 5.1.27)
  • node version (node --version): v14.3.0
  • npm version (npm --version): 6.14.5
    Solidity - 0.6.0 (solc-js)
    Web3.js v1.2.1

Any ideas ? Thanks !

Most helpful comment

can you downgrade to node v10 and try?

All 8 comments

Hi @emeline-sc, that is strange! The unknown words seem to be spell-checking results. It's likely your editor isn't configured for node/js development. Do you get the same spell-check result editing files in other node or JS projects?

Can you provide more details on the truffle test attempt? Did you execute the command in the terminal console. What errors were reported?

Thanks for your answer! The command is loading but there is no message.
Yes, I executed it in my terminal but no errors :/

Is it possible to share your project? This would help to reproduce your errors.

yes sure
https://github.com/emeline-sc/wallet

I think it's my environment but I uninstall and I install again truffle but got the same error :/

I was able to compile the project and run its tests. See below. What does your output look like?

$ npm ci
   :
   :  <<output snipped for brevity>>
   :
setting up Git hooks
skippingpre-commit hook (existing user hook)
skippingprepare-commit-msg hook (existing user hook)
skippingpost-commit hook (existing user hook)
skippingpost-checkout hook (existing user hook)
skippingpost-merge hook (existing user hook)
skippingpre-push hook (existing user hook)
skippingpost-rewrite hook (existing user hook)
done

added 535 packages in 34.048s
$ truffle test

Compiling your contracts...
===========================
✔ Fetching solc version list from solc-bin. Attempt #1
✔ Downloading compiler. Attempt #1.
> Compiling ./contracts/Migrations.sol
> Compiling ./contracts/Wallet.sol
> Artifacts written to /var/folders/tw/c_5fnj652w935zrmzny8f6m40000gn/T/test-2020425-67844-1wgw7n5.v45ck
> Compiled successfully using:
   - solc: 0.6.0+commit.26b70077.Emscripten.clang



  Contract: Wallet
    ✓ should have correct approvers and quorum (102ms)


  1 passing (417ms)

$

Screenshot 2020-05-25 at 14 39 51

Nothing happen in my case :/

can you downgrade to node v10 and try?

I downgrade to node v12.16.2 and it's working
Many thanks @cds-amal ! :)

Was this page helpful?
0 / 5 - 0 ratings