aws / aws/amazon-q-connectjs

package crash with vite

Open
#44 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14
Forks
11
PR merge metrics
No merged PRs in 30d

Description

when installing this package via npm, it throws the following
node version 22

X [ERROR] Could not resolve "@amzn/clover-frontend-service"

node_modules/amazon-q-connectjs/dist/es/sdkHandler.js:3:52:
3 │ import { QConnectClient as QConnectSDKClient } from '@amzn/clover-frontend-service';
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "@amzn/clover-frontend-service" as external to exclude it from the bundle,
which will remove this error and leave the unresolved path in the bundle.

Contributor guide

Open the contributing guide

Research direction

Reproduce the npm installation and Vite bundle with Node 22, then inspect node_modules/amazon-q-connectjs/dist/es/sdkHandler.js and the unresolved @amzn/clover-frontend-service import. Done means the package bundles successfully without this unresolved dependency error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, vite
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.