package crash with vite
- 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
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