-
Notifications
You must be signed in to change notification settings - Fork 638
Closed
Labels
bugThis issue is a bug.This issue is a bug.closed-for-stalenessp2This is a standard priority issueThis is a standard priority issue
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
I am using Electron, and the following error is shown on running the "npm start" command.
Any suggestions or anyone has ever faced a similar issue?
some dependencies
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "3.11.1",
"webpack-manifest-plugin": "2.2.0",
"webpack-node-externals": "^1.7.2",
"@aws-sdk/client-s3": "^3.292.0",
"s3-sync-client": "^3.0.3",
"electron": "^12.2.3",
"electron-builder": "^23.6.0",
"electron-devtools-installer": "^2.2.4",
"electron-notarize": "^1.1.1",
"electron-rebuild": "^3.2.5",
"electron-updater": "^4.6.5",
webpack config
module: {
noParse: [/aws\-sdk/],
}
Added the above code to resolve the following error
[0] ERROR in ./node_modules/@aws-sdk/property-provider/dist-es/chain.js 7:24 [0] Module parse failed: Unexpected token
(7:24) [0] You may need an appropriate loader to handle this file type, currently, no loaders are configured to process this file
SDK version number
3.292.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
14.16.0
Reproduction Steps
Error caused by running the "npm start" command
Observed Behavior
Uncaught SyntaxError: Unexpected token 'export'
at Object../node_modules/@aws-sdk/client-s3/dist-es/index.js (main-bundle.js:3405)
at __webpack_require__ (main-bundle.js:790)
at fn (main-bundle.js:101)
at eval (webpack-internal:///…s3-sync-client.js:1)
at Object../node_modules/s3-sync-client/lib/s3-sync-client.js (main-bundle.js:91055)
at __webpack_require__ (main-bundle.js:790)
at fn (main-bundle.js:101)
at eval (webpack-internal:///…ient/lib/index.js:1)
at Object../node_modules/s3-sync-client/lib/index.js (main-bundle.js:91044)
at __webpack_require__ (main-bundle.js:790)
at fn (main-bundle.js:101)
at Module.eval (webpack-internal:///…ploadManagerV2.js:3)
at eval (webpack-internal:///…oadManagerV2.js:176)
at Module../app/models/UploadManagerV2.js (main-bundle.js:2908)
at __webpack_require__ (main-bundle.js:790)
at fn (main-bundle.js:101)
Expected Behavior
The project should run as normal. But getting the mentioned errors
Possible Solution
No response
Additional Information/Context
No response
victororlyk, ufuksak and stephenhuh
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.closed-for-stalenessp2This is a standard priority issueThis is a standard priority issue