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

Installation failure? #31

Closed
shairozan opened this issue Nov 17, 2024 · 3 comments
Closed

Installation failure? #31

shairozan opened this issue Nov 17, 2024 · 3 comments
Labels

Comments

@shairozan
Copy link

Steps to reproduce

  1. Download the tag for 2.0
    1. Javascript version specifically
  2. Navigate to path
  3. Issue pnpm install command

What is expected?

Exit code of 0 and successful installation

What is actually happening?

ReferenceError: require is not defined in ES module scope, you can use import instead
    at file:///C:/Users/dukeo/GolandProjects/towncrier/frontend/src/assets/iconify-icons/bundle-icons-css.js:23:5
    at ModuleJob.run (node:internal/modules/esm/module_job:268:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:543:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)

Now I'm also woefully new to UI development, but this occurred regardless of installer (NPM, PNPM etc)

Additional data

NodeJS Version: v22.11.0
Package manager(npm|yarn|pnpm):
Browser name & version: Haven't even gotten there O.o

@shairozan shairozan added bug Something isn't working support labels Nov 17, 2024
@neelbrahmakshatriya
Copy link
Member

Hi @shairozan,

To ensure a smooth installation, please update your jsconfig.json or tsconfig.json file (according to your project) by changing "module": "ESNext" to "module": "CommonJS".

Additionally, don’t forget to review and update the environment variables in your .env file as needed.

Please let me know how it works for you.

Awaiting your reply.

Copy link

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you for raising the concern.

@github-actions github-actions bot added the stale label Nov 27, 2024
Copy link

github-actions bot commented Dec 4, 2024

This issue has been automatically marked as closed because it has no recent activity.

@github-actions github-actions bot closed this as completed Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants