-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build vue 3 project if importing aws-amplify package #14031
Comments
Hey, thanks for raising this! I'm going to transfer this over to our JS repository for better assistance 🙂 |
Hi @ivanovvitaly thank you for opening this issue. I did a quick test with creating a new Vue starter app, and I couldn't reproduce this issue. I've taken the following steps:
❯ npm run build
> test-build@0.0.0 build
> run-p type-check "build-only {@}" --
> test-build@0.0.0 type-check
> vue-tsc --build --force
> test-build@0.0.0 build-only
> vite build
vite v5.4.11 building for production...
✓ 585 modules transformed.
dist/index.html 0.43 kB │ gzip: 0.29 kB
dist/assets/AboutView-CSIvawM9.css 0.09 kB │ gzip: 0.10 kB
dist/assets/index-5dJgFXHu.css 4.21 kB │ gzip: 1.30 kB
dist/assets/AboutView-6XaiO942.js 0.23 kB │ gzip: 0.20 kB
dist/assets/index-Dsxzz0b4.js 145.63 kB │ gzip: 53.13 kB
✓ built in 854ms In noticed that you are using |
Hey @HuiSF, thanks for quick feedback! I tried clean vue 3 with vite template it builds without issues. |
@ae-vivanov, that's great to hear that it's now building without issues using Vite. We don't think webpack is the issue here, but rather Typescript. Did you also upgrade the version of typescript as well before trying the webpack build again? |
@cwomack upgraded to typescript 5.6.3, compiled without errors. Thank you so much! |
@ivanovvitaly, glad to hear that and thanks for following up and closing the issue! |
Describe the bug
I installed aws-amplify npm package to the clean vue 3 project and added Amplify import. When I run
npm run build
I get long list of errors,npm run serve
runs without errors though. If I remove aws-amplify import statement the project compiles without errors.Please advice
To Reproduce
Steps to reproduce the behavior:
import { Amplify } from 'aws-amplify';
npm run build
Expected behavior
Project should compile without errors
Desktop (please complete the following information):
Additional context
main.ts
package.json
The text was updated successfully, but these errors were encountered: