Skip to content
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

amplify publish giving error in vite project #13035

Closed
2 tasks done
SHAHARYAR1255 opened this issue Jul 30, 2023 · 3 comments
Closed
2 tasks done

amplify publish giving error in vite project #13035

SHAHARYAR1255 opened this issue Jul 30, 2023 · 3 comments
Labels
pending-response Issue is pending response from the issue author pending-triage Issue is pending triage

Comments

@SHAHARYAR1255
Copy link

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

18.12.1

Amplify CLI Version

12.0.3

What operating system are you using?

windows

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

no

Describe the bug

'request' is not exported by __vite-browser-external, imported by node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-imds/dist/es/remoteProvider/httpRequest.js
file: C:/kaam/ecommerce_startup/web/ec/octotastic/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-imds/dist/es/remoteProvider/httpRequest.js:4:9
2: import { ProviderError } from "@aws-sdk/property-provider";
3: import { Buffer } from "buffer";
4: import { request } from "http";
^
5: /**
6: * @internal
error during build:
Error: 'request' is not exported by __vite-browser-external, imported by node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-imds/dist/es/remoteProvider/httpRequest.js

my frontend is in vite

Expected behavior

build successful

Reproduction steps

run amlify publish

Project Identifier

b0898beef6b7727ab417e127b3fc94ea

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.
@SHAHARYAR1255 SHAHARYAR1255 added the pending-triage Issue is pending triage label Jul 30, 2023
@josefaidt
Copy link
Contributor

Hey @SHAHARYAR1255 👋 thanks for raising this! Are you able to build your Vite app with the build script specified in your package.json? for example, npm run build

@josefaidt josefaidt added the pending-response Issue is pending response from the issue author label Jul 31, 2023
@josefaidt
Copy link
Contributor

Closing due to inactivity. @SHAHARYAR1255 if you are still experiencing this please reply back to this thread and we can re-open to investigate further

@josefaidt josefaidt closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-response Issue is pending response from the issue author pending-triage Issue is pending triage
Projects
None yet
Development

No branches or pull requests

2 participants