I have a project that is working properly (as far as I can see), now I want to add a blog using MDX and have gone through the installation process but when I start the localhost I get an error message that says " Module not found".
Everything works perfectly when I remove the config for the MDX in next.config.js, o i am not sure what is going on here. Can anybody help? Thanks
Error: Cannot find module './undefined.json'
at C:\Users\XXXX\OneDrive\Desktop\Development\PROJECT_NAME\.next\server\pages\404.js:34:12
at async getStaticProps (webpack-internal:///./pages/404.js:96:22)
at async Object.renderToHTML (C:\Users\XXXX\OneDrive\Desktop\Development\PROJECT_NAME\node_modules\next\dist\server\render.js:465:20)
at async doRender (C:\Users\XXXX\OneDrive\Desktop\Development\PROJECT_NAME\node_modules\next\dist\server\base-server.js:879:38)
at async cacheEntry.responseCache.get.isManualRevalidate.isManualRevalidate (C:\Users\XXXX\OneDrive\Desktop\Development\PROJECT_NAME\node_modules\next\dist\server\base-server.js:979:28)
at async C:\Users\XXXX\OneDrive\Desktop\Development\PROJECT_NAME\node_modules\next\dist\server\response-cache.js:64:36 {
code: 'MODULE_NOT_FOUND'
}
PS C:\Users\XXXX\OneDrive\Desktop\Development\PROJECT_NAME>
Related
Sorry I have ths problem while I want to publish a blog project coded in react.js, next.js, tailwind on Vercel. Can someone help me please ?
Build error occurred
TypeError: Only absolute URLs are supported
at getNodeRequestOptions (/vercel/path0/node_modules/node-fetch/lib/index.js:1305:9)
at /vercel/path0/node_modules/node-fetch/lib/index.js:1410:19
at new Promise ()
at fetch (/vercel/path0/node_modules/node-fetch/lib/index.js:1407:9)
at fetch (/vercel/path0/node_modules/cross-fetch/dist/node-ponyfill.js:10:20)
at /vercel/path0/node_modules/graphql-request/dist/index.js:164:42
at step (/vercel/path0/node_modules/graphql-request/dist/index.js:63:23)
at Object.next (/vercel/path0/node_modules/graphql-request/dist/index.js:44:53)
at /vercel/path0/node_modules/graphql-request/dist/index.js:38:71
at new Promise () {
type: 'TypeError'
}
Error: Command "npm run build" exited with 1
The app is build using Vite, and it's a React ts based app. The project runs normally in development mode, but when trying to build the app for production using npm run build, getting below error.
I really don't want to degrade the react-router-dom version below 6.4
[commonjs--resolver] Unexpected token (656:59) in /Users/sanketsaha/Work/School/TulipApp/node_modules/react-router-dom/dist/index.js file: /Users/sanketsaha/Work/School/TulipApp/node_modules/react-router-dom/dist/index.js:656:59 654:
655: if (typeof document === "undefined") { 656: throw new Error("You are calling submit during the server render. " + "Try calling submit within a `useEffect` or callback instead.");
^ 657: } error during build: SyntaxError: Unexpected token (656:59) in /Users/sanketsaha/Work/School/TulipApp/node_modules/react-router-dom/dist/index.js
at pp$4.raise (file:///Users/sanketsaha/Work/School/TulipApp/node_modules/rollup/dist/es/shared/rollup.js:20114:13)
at pp$9.unexpected (file:///Users/sanketsaha/Work/School/TulipApp/node_modules/rollup/dist/es/shared/rollup.js:17415:8)
Can someone please guide me here. Unable to resolve the error.
I am able to resolve the error. It was encountered due to the server configuration in vite.config.ts. It is going to get served as static pages from dist folder.
suddenly it started giving me error : UNHANDLED REJECTION Reducers may not dispatch actions, when i try to run npm start, prior it was working fine for me, but somehow it started to giving me the error, can anyone please help me to resolve this issue, i am using react gatsby
This error can be caused due to a mismatch in your gatsby-config file from what is expected.
For example, if you use SiteMetaData instead of SiteMetadata, it won't show an error while rebuilding, but it can not be validated while re-running the application, and hence it will throw an error.
Refer to this documentation for more details about the config api
let groupModule = angular.module('app.group',['btford.socket-io']);
I have included socket.js and /socket.io/socket.io.js as well. Still getting this error. Completed all the steps in ReadMe but still getting this error.
Github repo
I am trying to use angular-socket-io.
I've been working with my repo for a while, it's a clone of the angular2-seed repo. It includes webpack 2 (I think it's still beta) and async routes.
I did some tests and reverted to a previous state, but after installing packages with npm it fails loading async components with the following message in the browser:
browser_adapter.js:85 EXCEPTION: Error: Uncaught (in promise): Error: Cannot find module './+tickets'.
The plus sign is not a typo, the folder is actually called "+tickets" and it contains an index.ts file. It always worked, and now for some reason it doesn't.
I tried everything, but the error is so clueless that I don't know where to watch. Maybe the webpack-dev-server is not serving the files correctly..?
An alternative plan would be to start everything from scratch and then move the modules, but I'm really interested to where the problem is for future implementations.
Thanks a lot for the help
Hi I've created Angular2 lazy loading demo using RC 6.
Please checkout https://github.com/Quramy/ng2-lazy-load-demo .