unable to install '@strapi/client' due to tsconfig builder
unable to install '@strapi/client' due to tsconfig compile settings:
[ Wasp ] src/demo-ai-app/DemoAppPage.tsx(18,24): error TS2307: Cannot find module '@strapi/client' or its corresponding type declarations.
[ Wasp ] There are types at '/.../Documents/commercialNewsApp/commerseNews/app/node_modules/@strapi/client/dist/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.wasp clean to remove all generated files and node_modules.wasp start to reinstall everything and regenerate the necessary files.@strapi/client and see if I can get it to work npm install @strapi/client and importing it in either server or client code.❌ --- [Error] Your wasp project failed to compile: -------------------------------
- Invalid value for the "compilerOptions.moduleResolution" field in tsconfig.json, you must set it to: "bundler".
❌ --- [Error] Compilation of wasp project failed: --------------------------------
1 errors found@strapi/clientnpm install @strapi/client🐝 --- Building SDK... ------------------------------------------------------------
[ Wasp ] src/api.ts(1,24): error TS2307: Cannot find module '@strapi/client' or its corresponding type declarations.
[ Wasp ] There are types at '/private/tmp/strapi/node_modules/@strapi/client/dist/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.{
"compilerOptions": {
"moduleResolution": "node16",
// ... other options
}
}import { strapi } from "@strapi/client";
const api = strapi({
baseURL: "http://localhost:1337",
});