Closed rizrmd closed 3 years ago
Tried removing webpack 5 in my package.json does not do any difference.
Hmm, I don't know what would be the fix. __db.js
is the compiled version of db/index.ts
and is configured here: https://github.com/blitz-js/blitz/blob/canary/packages/server/src/with-blitz.ts#L22
This is an interesting topic for me. When I tried to reproduce it, I got the following error in my environment.
...
ready - started server on http://localhost:3000
error - ./pages/_app.tsx
Error: [BABEL] <local path>/.blitz/caches/dev/pages/_app.tsx: Cannot find module '@babel/plugin-syntax-typescript'
...
This seems to be a problem that depends heavily on Next.
Do I need to rewrite the loader and some plugins for esbuild to handle __db.js
issues and these?
https://github.com/vercel/next.js/blob/canary/packages/next/build/webpack/loaders/next-babel-loader.js
@AkifumiSato possibly? I'm not sure, this is beyond my experience!
Hi,
I tried to improve blitzjs live-reload loading time by installing esbuild-loader in my project. As per https://github.com/privatenumber/esbuild-loader/issues/62,
Good news is live-reload time are noticeably improved, pages are rendered fine, but then this error happened. the error pops when I tried accessing api route with db access in it.
this is the error message :
Any suggestion ?