-
Hey guys. I am on lesson 10 and i have been running into an error and i think it has something to do with Moralis. I have been on it for the past 2 days and i have not yet found a solution. Please help!!!! This is the error
This is my package.json {
"name": "nextjs-smartcontract-lottery-fcc",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"moralis": "^2.23.2",
"moralis-v1": "^1.13.0",
"next": "14.0.3",
"react": "^18.2.0",
"react-dom": "^18",
"react-moralis": "^1.4.2"
},
"devDependencies": {
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.0.3",
"postcss": "^8",
"prettier": "^3.1.0",
"tailwindcss": "^3.3.0"
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello @youngpriince As you are using next.js 14 structure of your project is totally different than that on course. You can either downgrade next.js to match course version (actually make sure you are matching whole package.json) or you can adjust your folders structure to match course, but this can still lead to tons of errors if you are using different packages versions. |
Beta Was this translation helpful? Give feedback.
@youngpriince
Just enter course lesson that you want to check and vie it's source code, then check this lesson
package.json
file. There you will find all packages and their versions.