{"id":149,"hash":"b21fb16fcaa7bd81ada8e848fc786489e71756312390d14c039f77a835626733","pattern":"Parsing error : Cannot find module &#39;next/babel&#39;","full_message":"Update 1:\nUpdated the latest working solution to @Jeevan Rupacha answer, please scroll below to check it out.\n\nI have been encountering this error on every single new Next.js project that I create. The page can be compiled without any problem, it just keeps on showing as error on the first line in every js file.\n\nParsing error: Cannot find module 'next/babel'\nRequire stack:\n\nD:\\app\\next_app\\ratu-seo\\node_modules\\next\\dist\\compiled\\babel\\bundle.js\nD:\\app\\next_app\\ratu-seo\\node_modules\\next\\dist\\compiled\\babel\\eslint-parser.js\nD:\\app\\next_app\\ratu-seo\\node_modules\\eslint-config-next\\parser.js\nD:\\app\\next_app\\ratu-seo\\node_modules@eslint\\eslintrc\\lib\\config-array-factory.js\nD:\\app\\next_app\\ratu-seo\\node_modules@eslint\\eslintrc\\lib\\index.js\nD:\\app\\next_app\\ratu-seo\\node_modules\\eslint\\lib\\cli-engine\\cli-engine.js\nD:\\app\\next_app\\ratu-seo\\node_modules\\eslint\\lib\\cli-engine\\index.js\nD:\\app\\next_app\\ratu-seo\\node_modules\\eslint\\lib\\api.js\nc:\\Users\\Admin.vscode\\extensions\\dbaeumer.vscode-eslint-2.1.23\\server\\out\\eslintServer.js","ecosystem":"npm","package_name":"next.js","package_version":null,"solution":"You don't need to create an extra .babelrc file.\n\nIn your NextJS project you have a file named .eslintrc.json.\nIn this file you have following code:\n\n{\n  \"extends\": \"next/core-web-vitals\"\n}\n\nReplace it with\n\n{\n  \"extends\": [\"next/babel\",\"next/core-web-vitals\"]\n}\n\nNote: If you only replace with\n\n{\n   \"extends\": [\"next/babel\"]\n}\n\nThe red error sign will appear but the code won't compile and gives compile error.\n\n`Note: If [\"next/babel\"] is not working try only [\"next\"]","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/68163385/parsing-error-cannot-find-module-next-babel","votes":215,"created_at":"2026-04-19T04:41:25.069663+00:00","updated_at":"2026-04-19T04:51:22.566299+00:00"}