You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./pages/sitemap.xml/index.tsx:2:36
Type error: Could not find a declaration file for module 'next-sitemap'. 'C:/dev/frontend/project/node_modules/next-sitemap/dist/esm/index.js' implicitly has an 'any' type.
There are types at 'C:/dev/frontend/project/node_modules/next-sitemap/dist/@types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'next-sitemap' library may need to update its package.json or typings.
1 | import type { GetServerSideProps } from "next";
> 2 | import type { ISitemapField } from "next-sitemap";
Info: Seems as bundler will be used for all future applications created with create-next-app.
To Reproduce
Steps to reproduce the behavior:
change tsonfig.json moduleResolution from node to bundler in an existing project which uses next-pw
try to build
Expected behavior
Build should succeed
Screenshots
Additional context
created a pull-request #677 which should fix it (tested locally)
The text was updated successfully, but these errors were encountered:
Describe the bug
when changing moduleResolution from
node
tobundler
(as in https://github.com/vercel/next.js/pull/51957/files#diff-066cacecd32e0ca72d47360ddb35c19a676835816eed05163e05564ec0874590) in tsconfig.json, the following errors occur during build:Info: Seems as bundler will be used for all future applications created with create-next-app.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Build should succeed
Screenshots
Additional context
created a pull-request #677 which should fix it (tested locally)
The text was updated successfully, but these errors were encountered: