Error:Cannot find module '../build/output/log' #39252
Unanswered
maohui66661
asked this question in
Help
Replies: 2 comments
-
I am getting same error, Is there any solution for this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try deleting your node_modules directory and then reinstalling them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Verify canary release
Provide environment information
npx --no-install next info
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
node & next start
Describe the Bug
when exec 'next start',show error:
Expected Behavior
Start service normally
Link to reproduction
d
To Reproduce
package.json
{
"name": "thresh",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start -p 30928",
"lint": "next lint"
},
"dependencies": {
"@mdx-js/react": "^2.1.1",
"@next/mdx": "^12.1.6",
"antd": "^4.20.5",
"next": "12.1.6",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-markdown": "^8.0.3",
"remark-toc": "^7.2.0"
},
"devDependencies": {
"@mdx-js/loader": "^2.1.1",
"@types/node": "17.0.33",
"@types/react": "18.0.9",
"@types/react-dom": "18.0.4",
"eslint": "8.15.0",
"eslint-config-next": "12.1.6",
"typescript": "4.6.4"
}
}
/** @type {import('next').NextConfig} */
const remarkToc = require("remark-toc");
const withMDX = require("@next/mdx")({
extension: /.(md|mdx)$/,
options: {
remarkPlugins: [remarkToc],
// rehypePlugins: [],
// If you use
MDXProvider
, uncomment the following line.// providerImportSource: "@mdx-js/react",
},
});
const nextConfig = {
reactStrictMode: true,
};
next.config.ts
module.exports = withMDX({
reactStrictMode: true,
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
if (!isServer) {
config.resolve.fallback = {
fs: false,
};
}
return config;
},
});
Beta Was this translation helpful? Give feedback.
All reactions