GithubHelp home page GithubHelp logo

Comments (21)

YosephKS avatar YosephKS commented on May 22, 2024 1

Alright fixed guys 🙌🏼 pull the latest version and have a check and let us know~

from ethereum-boilerplate.

Y0moo avatar Y0moo commented on May 22, 2024 1

Hey @mrtornado @Ajay67

Please remove your node_modules folder, yarn.lock/package-lock. Fetch new version of the boilerplate and run yarn install

from ethereum-boilerplate.

cvramire avatar cvramire commented on May 22, 2024

i have this error when running yarn install
error Couldn't find package "eslint-plugin-import@^2.22.1" required by "[email protected]" on the "npm" registry.

from ethereum-boilerplate.

kuabhish avatar kuabhish commented on May 22, 2024

solution? facing same issue please

from ethereum-boilerplate.

blockjester avatar blockjester commented on May 22, 2024

Seems to be a dependency tree issue, eslint related? Seems there are two versions 8.8.0 and 7.32.0 and they don't get along?

❯ npm ls eslint                                                                                                                      09:11:15 AM
[email protected] /Users/eric/code/crypto/hackathon/ethereum-boilerplate
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected] deduped
└─┬ [email protected]
  ├─┬ @typescript-eslint/[email protected]
  │ ├─┬ @typescript-eslint/[email protected]
  │ │ ├─┬ [email protected]
  │ │ │ └── [email protected]
  │ │ └── [email protected]
  │ └── [email protected] deduped
  ├─┬ @typescript-eslint/[email protected]
  │ └── [email protected] deduped
  ├─┬ [email protected]
  │ └── [email protected] deduped
  ├─┬ [email protected]
  │ └── [email protected] deduped
  ├─┬ [email protected]
  │ └── [email protected] deduped
  ├─┬ [email protected]
  │ └── [email protected] deduped
  ├─┬ [email protected]
  │ └── [email protected] deduped
  ├─┬ [email protected]
  │ └── [email protected] deduped
  ├─┬ [email protected]
  │ ├─┬ @typescript-eslint/[email protected]
  │ │ └── [email protected] deduped
  │ └── [email protected] deduped
  ├─┬ [email protected]
  │ └── [email protected] deduped
  └── [email protected]

from ethereum-boilerplate.

 avatar commented on May 22, 2024

blockjester

What is the solution?

from ethereum-boilerplate.

kuabhish avatar kuabhish commented on May 22, 2024

what I did is went to a older commit and it worked.

from ethereum-boilerplate.

CodeXSky avatar CodeXSky commented on May 22, 2024

@kuabhish if you checkout to older commit, it probably missing files config. Anyone else have solution for update eslint to resolve this?

from ethereum-boilerplate.

blockjester avatar blockjester commented on May 22, 2024

I do welcome the eslint and prettier.. but spent the better part of today banging my head trying to fix this by checkout out an older commit and re-installing. Still doesn't work for me.

from ethereum-boilerplate.

kuabhish avatar kuabhish commented on May 22, 2024

I dont know about this config file @CodeXSky
but going to commit cfffb45755287226ab01f560343a5442cd9ec313 worked for me @blockjester

from ethereum-boilerplate.

YosephKS avatar YosephKS commented on May 22, 2024

Hey @kuabhish @CodeXSky @blockjester @CyrusSaei @cvramire if you are having the latest version of ethereum-boilerplate 🙌

if any of you get this error

 Line 0:  Parsing error: ImportDeclaration should appear when the mode is ES6 and in the module context

then, simply replace the content of your .eslintrc with this

{
  "settings": {
    "react": {
      "version": "detect"
    }
  },
  "env": {
    "browser": true,
    "node": true,
    "es2021": true,
    "jest": true
  },
  "extends": [
    "eslint:recommended",
    "plugin:react/jsx-runtime",
    "plugin:react/recommended",
    "plugin:prettier/recommended",
    "plugin:react-hooks/recommended"
  ],
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    },
    "ecmaVersion": 12,
    "sourceType": "module"
  },
  "plugins": ["react"],
  "rules": {
    "react/react-in-jsx-scope": "off",
    "react/prop-types": "off",
    "react/jsx-key": "off",
    "react/no-unescaped-entities": "off"
  }
}

What I do is:

  1. set "ecmaVersion": 12
  2. add some new rules to off

I'll try to make a patch PR to fix this next ASAP.

from ethereum-boilerplate.

YosephKS avatar YosephKS commented on May 22, 2024

Thank you again y'all @kuabhish @CodeXSky @blockjester @CyrusSaei @cvramire for reporting, a patch fix PR is on its way 🙌🏼 appreciate all your inputs

from ethereum-boilerplate.

 avatar commented on May 22, 2024

YosephKS

Thanks so much 🙏

from ethereum-boilerplate.

blockjester avatar blockjester commented on May 22, 2024

Thank you!

from ethereum-boilerplate.

CodeXSky avatar CodeXSky commented on May 22, 2024

Alright fixed guys 🙌🏼 pull the latest version and have a check and let us know~

Thank you !

from ethereum-boilerplate.

 avatar commented on May 22, 2024

1 hour ago I have downloaded, then installed packages and complied using both npm and yarn but got a lot of errors. Below are the last lines of the errors

ERROR in ./node_modules/xhr2-cookies/dist/xml-http-request.js 39:12-28
Module not found: Error: Can't resolve 'https' in '/Users/ajay/Bloackchain/codes/ethereum-boilerplate/node_modules/xhr2-cookies/dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "https": require.resolve("https-browserify") }'
        - install 'https-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "https": false }
 @ ./node_modules/xhr2-cookies/dist/index.js 11:9-38
 @ ./node_modules/@walletconnect/http-connection/dist/esm/index.js 2:0-46 4:47-61
 @ ./node_modules/@walletconnect/web3-provider/dist/esm/index.js 3:0-60 338:22-36
 @ ./node_modules/moralis/lib/browser/Web3Connector/WalletConnectWeb3Connector.js 160:54-93
 @ ./node_modules/moralis/lib/browser/MoralisWeb3.js 83:57-110
 @ ./node_modules/moralis/lib/browser/Parse.js 45:42-66
 @ ./node_modules/moralis/index.js 1:0-50
 @ ./node_modules/react-moralis/lib/index.esm.js 3:0-36 5335:11-24
 @ ./src/index.js 7:0-48 21:48-63

ERROR in ./node_modules/xhr2-cookies/dist/xml-http-request.js 41:9-22
Module not found: Error: Can't resolve 'os' in '/Users/ajay/Bloackchain/codes/ethereum-boilerplate/node_modules/xhr2-cookies/dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "os": require.resolve("os-browserify/browser") }'
        - install 'os-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "os": false }
 @ ./node_modules/xhr2-cookies/dist/index.js 11:9-38
 @ ./node_modules/@walletconnect/http-connection/dist/esm/index.js 2:0-46 4:47-61
 @ ./node_modules/@walletconnect/web3-provider/dist/esm/index.js 3:0-60 338:22-36
 @ ./node_modules/moralis/lib/browser/Web3Connector/WalletConnectWeb3Connector.js 160:54-93
 @ ./node_modules/moralis/lib/browser/MoralisWeb3.js 83:57-110
 @ ./node_modules/moralis/lib/browser/Parse.js 45:42-66
 @ ./node_modules/moralis/index.js 1:0-50
 @ ./node_modules/react-moralis/lib/index.esm.js 3:0-36 5335:11-24
 @ ./src/index.js 7:0-48 21:48-63

ERROR in ./node_modules/xhr2-cookies/dist/xml-http-request.js 43:10-24
Module not found: Error: Can't resolve 'url' in '/Users/ajay/Bloackchain/codes/ethereum-boilerplate/node_modules/xhr2-cookies/dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "url": require.resolve("url/") }'
        - install 'url'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "url": false }
 @ ./node_modules/xhr2-cookies/dist/index.js 11:9-38
 @ ./node_modules/@walletconnect/http-connection/dist/esm/index.js 2:0-46 4:47-61
 @ ./node_modules/@walletconnect/web3-provider/dist/esm/index.js 3:0-60 338:22-36
 @ ./node_modules/moralis/lib/browser/Web3Connector/WalletConnectWeb3Connector.js 160:54-93
 @ ./node_modules/moralis/lib/browser/MoralisWeb3.js 83:57-110
 @ ./node_modules/moralis/lib/browser/Parse.js 45:42-66
 @ ./node_modules/moralis/index.js 1:0-50
 @ ./node_modules/react-moralis/lib/index.esm.js 3:0-36 5335:11-24
 @ ./src/index.js 7:0-48 21:48-63

ERROR in src/components/Contract/Contract.jsx
  Line 90:34:  Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError  no-unsafe-optional-chaining

Search for the keywords to learn more about each error.

8 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.68.0 compiled with 11 errors and 98 warnings in 43797 ms

from ethereum-boilerplate.

mrtornado avatar mrtornado commented on May 22, 2024

yea I'm getting the same errors :) Somebody messed up the template, yesterday was working just fine :)

from ethereum-boilerplate.

 avatar commented on May 22, 2024

@Y0moo It's now working. Thanks for the quick response.

from ethereum-boilerplate.

kushcoin avatar kushcoin commented on May 22, 2024

This has been a nightmare.. I have never had so many issues with anything labeled "boilerplate"... Cannot get the environment setup even as there is just so much broken or deprecated crap its ridiculous. Tired of even trying.

from ethereum-boilerplate.

Y0moo avatar Y0moo commented on May 22, 2024

@kushcoin Please provide some details so I will be able to help you

from ethereum-boilerplate.

kushcoin avatar kushcoin commented on May 22, 2024

It's requesting I polyfill each module because webpack no longer includes them for node.js i will make a list of other issues too, but I cannot find webpack.config.js

from ethereum-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.