fow to fix: npm run build modern-portfolio@1.0.1 build next build Linting and checking…
- User
fow to fix: npm run build
modern-portfolio@1.0.1 build next build
Linting and checking validity of types ... ⨯ ESLint: Failed to load config "next/babel" to extend from. Referenced from: C:\xampp\htdocs\NEWS.eslintrc.json ✓ Linting and checking validity of types Creating an optimized production build .. [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|C:\xampp\htdocs\NEWS\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[7].oneOf[13].use[1]!C:\xampp\htdocs\NEWS\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[7].oneOf[13].use[2]!C:\xampp\htdocs\NEWS\styles\globals.css': No serializer registered for Warning while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Array { 1 items } -> webpack/lib/ModuleWarning -> Warning ⚠ Compiled with warnings
./styles/globals.css.webpack[javascript/auto]!=!./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[13].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[13].use[2]!./styles/globals.css Warning
(182:5) Nested CSS was detected, but CSS nesting has not been configured correctly. Please enable a CSS nesting plugin before Tailwind in your configuration. See how here: https://tailwindcss.com/docs/using-with-preprocessors#nesting
Import trace for requested module: ./styles/globals.css.webpack[javascript/auto]!=!./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[13].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[13].use[2]!./styles/globals.css ./styles/globals.css
unhandledRejection TypeError: Cannot read properties of null (reading 'useEffect') at exports.useEffect (C:\xampp\htdocs\NEWS\node_modules\react\cjs\react.production.min.js:24:292) at C:\xampp\htdocs\NEWS.next\server\chunks\506.js:1:7925 { type: 'TypeError' }
- Assistant
- User
- Assistant
- User
- Assistant
- User
how to remove an npm package after npm install --save-dev
- Assistant
To remove an npm package that you've previously installed using
npm install --save-dev, you can use thenpm uninstallcommand followed by the package name. This command will remove the package from thenode_modulesdirectory and also automatically update yourpackage.jsonandpackage-lock.jsonfiles, removing the reference to the uninstalled package from thedevDependencies.Here's the general syntax for uninstalling a development dependency:
npm uninstall <package-name> --save-devOr you can simply use:
npm uninstall <package-name>Because version 5 and later will automatically remove the package from the appropriate section in whether it is a dev dependency () or a production dependency (), without needing to specify or .