Closed gvzq closed 1 week ago
I don't think it's about pnpm
Can you try adding this in your next.config.js
const nextConfig = {
webpack: config => {
config.externals.push("typescript");
return config;
},
};
That's what I do, because node_modules/lib/typescript.js
is 8.9mb and makes next.js dev server so slow
My error disappeared. I agree I think it's a typescript error. I added tsx
and updated @omer-x/next-openapi-json-generator
. I'm leaving this here in case it helps someone else.
"tsx": "^4.16.2"
"@omer-x/next-openapi-json-generator": "^0.2.6
I don't think it's about pnpm
Can you try adding this in your
next.config.js
const nextConfig = { webpack: config => { config.externals.push("typescript"); return config; }, };
That's what I do, because
node_modules/lib/typescript.js
is 8.9mb and makes next.js dev server so slow
When using pnpm to run
"@omer-x/next-openapi-json-generator": "^0.2.5"
there's a warning that occurs every single timegenerateOpenApiSpec
is called.