Issue with NestJS
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 697
- Forks
- 31
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 10
Description
Trying to use this for my NestJS project, and when running got the following compilation error
import type * as types from './types';
^^^^^^
SyntaxError: Cannot use import statement outside a module
It seems like this sits outside the src folder, not sure if it can be an issue. Any help is appreciated!!!
Contributor guide
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.
Research direction
Start by reproducing the reported compilation error in a NestJS project and inspect the generated code around import type * as types from './types', particularly where it sits outside the src folder. Compare the generated output with the project’s module handling, then verify that the NestJS compilation completes without the syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100