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

Not able to start the application #3

Open
amit-gayal opened this issue Dec 14, 2023 · 2 comments
Open

Not able to start the application #3

amit-gayal opened this issue Dec 14, 2023 · 2 comments

Comments

@amit-gayal
Copy link

I am using Node v20. I am following these instructions to create a simple application.

When I start the application, it runs into below error.

(node:33917) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/Users/someuser/Documents/VS Code Local Directory/ACAgentDesktopApp/app.js:1
import { AmazonConnectApp } from "@amazon-connect/app";

After setting "type": "module" in the package.json file, the error changes to below:

file:///Users/someuser/Documents/VS%20Code%20Local%20Directory/ACAgentDesktopApp/app.js:1
import { AmazonConnectApp } from "@amazon-connect/app";
         ^^^^^^^^^^^^^^^^
SyntaxError: Named export 'AmazonConnectApp' not found. The requested module '@amazon-connect/app' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@amazon-connect/app';
const { AmazonConnectApp } = pkg;
@kimhanmiru
Copy link

Is it resolved? I am also experiencing the same error.

@taulatin
Copy link

taulatin commented Jun 6, 2024

The issue is not resolved yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants