-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Describe the bug
I created an Atomic code search page project using the CLI. The project was generated with @coveo/[email protected] and @coveo/[email protected].
After updating the package.json file to use @coveo/[email protected] and @coveo/[email protected] the project wouldn't build anymore raising many errors similar to this one:
[ ERROR ] TypeScript: ./node_modules/@coveo/headless/dist/definitions/features/commerce/context/cart/cart-selector.d.ts:39:44
Namespace
'"MY_SEARCH_PAGE_PROJECT/node_modules/reselect/es/index"'
has no exported member 'weakMapMemoize'.
L38: } & {
L39: argsMemoize: typeof import("reselect").weakMapMemoize;
L40: memoize: typeof import("reselect").weakMapMemoize;
To Reproduce
Steps to reproduce the behavior:
- Run
coveo ui:create:atomic - Update the
package.jsonand set the latest versions of@coveo/atomicand@coveo/headless - Update the
coveo.deploy.jsonfile accordingly. - Run
npm install - Run
npm run build - See the errors in the command line console
Expected behavior
A clear and concise description of what you expected to happen.
Once package.json and coveo.deploy.json are updated and npm install is done, npm run build should build correctly.
Screenshots
n/a
Desktop (please complete the following information):
- OS: Linux
- OS version: Ubuntu 20.04
- Browser n/a
- Browser version: n/a
- Version of the CLI 3.2.7
- Local Node version: 20.18.1
- Local NPM/Yarn version: 10.9.1
Additional context
I was able to fix the issue by applying the following changes to the generated project.
- In
package.json, set:@coveo/atomicto2.79.1@coveo/headlessto2.80.6@stencil/coreto4.20.0
- In
stencil.config.ts, replace
{
type: "dist-custom-elements-bundle",
minify: false,
includeGlobalScripts: true,
externalRuntime: false,
inlineDynamicImports: false,
dir: "dist/components",
},by
{
type: "dist-custom-elements",
customElementsExportBehavior: "bundle",
minify: false,
includeGlobalScripts: true,
generateTypeDeclarations: false,
externalRuntime: false,
},- In
tsconfig.jsonadd"skipLibCheck": truetocompilerOptions
Metadata
Metadata
Assignees
Labels
No labels