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

Error while code build in @aws-sdk/util-endpoints version 3.202.0 #4146

Closed
3 tasks done
sktnit opened this issue Nov 7, 2022 · 7 comments
Closed
3 tasks done

Error while code build in @aws-sdk/util-endpoints version 3.202.0 #4146

sktnit opened this issue Nov 7, 2022 · 7 comments
Assignees
Labels
bug This issue is a bug. closed-for-staleness investigating Issue is being investigated and/or work is in progress to resolve the issue. response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.

Comments

@sktnit
Copy link

sktnit commented Nov 7, 2022

Checkboxes for prior research

Describe the bug

In my Reactjs project, I have the following npm packages:

{
...,
"dependencies": {
     ...,
"   "aws-amplify": "^1.3.3",
    "aws-appsync": "^4.1.4",
    "aws-appsync-subscription-link": "^3.0.9",
    "aws4fetch": "^1.0.13",
   ...,
   "react": "^17.0.2",
   ...
},
...
}

While the code build, it is showing "Failed to compile" with the following error:

./node_modules/@aws-sdk/util-endpoints/dist-es/lib/index.js 1:9
Module parse failed: Unexpected token (1:9)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
> export * as aws from "./aws";
| export * from "./booleanEquals";
| export * from "./getAttr";
npm timing command:run-script Completed in 208821ms
npm verb exit 1
npm timing npm Completed in 209073ms
npm verb code 1

SDK version number

@aws-sdk/util-endpoints@3.202.0

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v16.5.0

Reproduction Steps

{
...,
"dependencies": {
     ...,
"   "aws-amplify": "^1.3.3",
    "aws-appsync": "^4.1.4",
    "aws-appsync-subscription-link": "^3.0.9",
    "aws4fetch": "^1.0.13",
    ...,
    "react": "^17.0.2",
    ...
},
...
}

Observed Behavior

npm verb cli [
npm verb cli   'C:\\Program Files\\nodejs\\node.exe',
npm verb cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   'run',
npm verb cli   'build',
npm verb cli   '--verbose'
npm verb cli ]
npm info using npm@7.19.1
npm info using node@v16.5.0
npm timing npm:load:whichnode Completed in 0ms
npm timing config:load:defaults Completed in 1ms
npm timing config:load:file:C:\Users\sktni\AppData\Roaming\nvm\v16.5.0\node_modules\npm\npmrc Completed in 1ms
npm timing config:load:builtin Completed in 1ms
npm timing config:load:cli Completed in 2ms
npm timing config:load:env Completed in 1ms
npm timing config:load:file:D:\Job\test\issue\swae-2-0-client\.npmrc Completed in 1ms
npm timing config:load:project Completed in 1ms
npm timing config:load:file:C:\Users\sktni\.npmrc Completed in 1ms
npm timing config:load:user Completed in 1ms
npm timing config:load:file:D:\usr\local\etc\npmrc Completed in 0ms
npm timing config:load:global Completed in 0ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 9ms
npm timing npm:load:configload Completed in 9ms
npm timing npm:load:setTitle Completed in 1ms
npm timing npm:load:setupLog Completed in 1ms
npm timing npm:load:cleanupLog Completed in 2ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load:projectScope Completed in 1ms
npm timing npm:load Completed in 30ms
npm timing config:load:flatten Completed in 3ms
[..................] / : timing config:load:flatten Completed in 3ms
> swae-2-0-client@0.1.0 build
> react-scripts --max_old_space_size=8192 build

Creating an optimized production build...ad:flatten Completed in 3ms
Failed to compile..] / : timing config:load:flatten Completed in 3ms

./node_modules/@aws-sdk/util-endpoints/dist-es/lib/index.js 1:9
Module parse failed: Unexpected token (1:9)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
> export * as aws from "./aws";
| export * from "./booleanEquals";
| export * from "./getAttr";
npm timing command:run-script Completed in 208821ms
npm verb exit 1
npm timing npm Completed in 209073ms
npm verb code 1

Expected Behavior

Build Successfully

Possible Solution

No response

Additional Information/Context

No response

@sktnit sktnit added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 7, 2022
@yenfryherrerafeliz yenfryherrerafeliz self-assigned this Nov 7, 2022
@sktnit
Copy link
Author

sktnit commented Nov 9, 2022

@yenfryherrerafeliz
These are the npm packages that I am using in my project.
"aws-amplify": "^1.3.3",
"aws-appsync": "^4.1.4",
"aws-appsync-subscription-link": "^3.0.9",
"aws4fetch": "^1.0.13",
"react": "^17.0.2",

I am still getting the following error. Please provide me an update asap.

export * as aws from "./aws";
| export * from "./booleanEquals";
| export * from "./getAttr";

@yenfryherrerafeliz yenfryherrerafeliz added the investigating Issue is being investigated and/or work is in progress to resolve the issue. label Nov 9, 2022
@yenfryherrerafeliz
Copy link
Contributor

Hi @shaileshnit, could you please provide the details about how to reproduce the error?, did you get the issue when running npm run build ?

Thanks!

@yenfryherrerafeliz yenfryherrerafeliz added response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. labels Nov 9, 2022
@sktnit
Copy link
Author

sktnit commented Nov 9, 2022

@yenfryherrerafeliz Yes after "npm run build", I am getting following logs:

npm verb cli [
npm verb cli 'C:\Program Files\nodejs\node.exe',
npm verb cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
npm verb cli 'run',
npm verb cli 'build',
npm verb cli '--verbose'
npm verb cli ]
npm info using npm@7.19.1
npm info using node@v16.5.0
npm timing npm:load:whichnode Completed in 0ms
npm timing config:load:defaults Completed in 1ms
npm timing config:load:file:C:\Users\sktni\AppData\Roaming\nvm\v16.5.0\node_modules\npm\npmrc Completed in 1ms
npm timing config:load:builtin Completed in 1ms
npm timing config:load:cli Completed in 2ms
npm timing config:load:env Completed in 1ms
npm timing config:load:file:D:\Job\test\issue\swae-2-0-client.npmrc Completed in 1ms
npm timing config:load:project Completed in 1ms
npm timing config:load:file:C:\Users\sktni.npmrc Completed in 1ms
npm timing config:load:user Completed in 1ms
npm timing config:load:file:D:\usr\local\etc\npmrc Completed in 0ms
npm timing config:load:global Completed in 0ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 9ms
npm timing npm:load:configload Completed in 9ms
npm timing npm:load:setTitle Completed in 1ms
npm timing npm:load:setupLog Completed in 1ms
npm timing npm:load:cleanupLog Completed in 2ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load:projectScope Completed in 1ms
npm timing npm:load Completed in 30ms
npm timing config:load:flatten Completed in 3ms
[..................] / : timing config:load:flatten Completed in 3ms

swae-2-0-client@0.1.0 build
react-scripts --max_old_space_size=8192 build

Creating an optimized production build...ad:flatten Completed in 3ms
Failed to compile..] / : timing config:load:flatten Completed in 3ms

./node_modules/@aws-sdk/util-endpoints/dist-es/lib/index.js 1:9
Module parse failed: Unexpected token (1:9)
File was processed with these loaders:

./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
export * as aws from "./aws";
| export * from "./booleanEquals";
| export * from "./getAttr";

npm timing command:run-script Completed in 208821ms
npm verb exit 1
npm timing npm Completed in 209073ms
npm verb code 1

@yenfryherrerafeliz
Copy link
Contributor

@shaileshnit, I am currently investigating this. I will get back to you as soon as possible.

Thanks!

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. label Nov 10, 2022
@yenfryherrerafeliz
Copy link
Contributor

@shaileshnit Are you using the default webpack configuration?, if not, could you please provide the one you are using in order to better root cause the issue.

Thanks!

@yenfryherrerafeliz yenfryherrerafeliz added the response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. label Nov 10, 2022
@github-actions
Copy link

This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Nov 18, 2022
@github-actions
Copy link

github-actions bot commented Dec 7, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue is a bug. closed-for-staleness investigating Issue is being investigated and/or work is in progress to resolve the issue. response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants