Export * rmg-auto-complete
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- react, typescript
- Domain
- build-system, frontend
Research direction
Start by reproducing the import failure and inspect node_modules/@railmapgen/rmg-components/dist/rmg-auto-complete/rmg-auto-complete.js together with node_modules/@choc-ui/chakra-autocomplete/dist/index.js and its package.json. Trace how the ES module and CommonJS exports interact; done means importing rmg-auto-complete no longer raises the reported ReferenceError.
Written by the indexing model from the issue text.
Description
Error: ReferenceError: exports is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/runner/work/rmp/rmp/node_modules/@railmapgen/rmg-components/node_modules/@choc-ui/chakra-autocomplete/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
❯ node_modules/@railmapgen/rmg-components/node_modules/@choc-ui/chakra-autocomplete/dist/index.js:1:36
❯ node_modules/@railmapgen/rmg-components/dist/rmg-auto-complete/rmg-auto-complete.js:1:174
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
resources
Difficulty 1/5 Under an hour Newbie friendliness 72/100
railmapgen/rmg-templates#2703 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
witchesofthehill/manabrew#1309 ·
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 2/5 Under an hour Newbie friendliness 86/100
Intelligenza-Umana/intelligenza-umana-web#16 ·
Maintainers usually reply within 1 day
-
enhancement priority: high size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day