Comments (21)
Alright fixed guys 🙌🏼 pull the latest version and have a check and let us know~
from ethereum-boilerplate.
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.
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.
solution? facing same issue please
from ethereum-boilerplate.
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.
blockjester
What is the solution?
from ethereum-boilerplate.
what I did is went to a older commit and it worked.
from ethereum-boilerplate.
@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.
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.
I dont know about this config file @CodeXSky
but going to commit cfffb45755287226ab01f560343a5442cd9ec313
worked for me @blockjester
from ethereum-boilerplate.
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:
- set
"ecmaVersion": 12
- add some new
rules
tooff
I'll try to make a patch PR to fix this next ASAP.
from ethereum-boilerplate.
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.
YosephKS
Thanks so much 🙏
from ethereum-boilerplate.
Thank you!
from ethereum-boilerplate.
Alright fixed guys 🙌🏼 pull the latest version and have a check and let us know~
Thank you !
from ethereum-boilerplate.
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.
yea I'm getting the same errors :) Somebody messed up the template, yesterday was working just fine :)
from ethereum-boilerplate.
@Y0moo It's now working. Thanks for the quick response.
from ethereum-boilerplate.
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.
@kushcoin Please provide some details so I will be able to help you
from ethereum-boilerplate.
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)
- Error In Build HOT 1
- Test Issue
- NX configuration
- [Component] NetworkSelect
- yarn start : command not found: set HOT 1
- [Component] HeaderTab
- [Component] HeaderTabs
- [Component] Header
- [UI] Layout HOT 2
- Add A Refresh Metadata Button. HOT 1
- Integrating with tailwindcss HOT 1
- Error with App.jsx file after compilation HOT 1
- Error 500 on Connect Wallet running on localhost HOT 2
- json parse bug HOT 2
- mint button without using MoralisProvider? HOT 1
- What's the purpose of the dotenv when you have next.config? HOT 10
- Yarn start ? HOT 6
- The engine "node" is incompatible with this module HOT 2
- Connect Wallet Button returning Connector not found. HOT 4
- Network HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethereum-boilerplate.