Skip to content

Typescript runtime missing exports when moduleResolution:nodenext #4882

@mezozawahra

Description

@mezozawahra

Typescript runtime shows missing exports when moduleResolution: NodeNext
This is probably due to using commonjs importing path and using no explicit extensions, i.e importing from ./atn instead of ./atn/index.js
I saw and old issue with no activity.
I created a PR adding the extensions .js and index.js and it passed the jest tests and it should be compatible with all moduleResolution options, but it has been 5 months with no update.

So, is there a regular update cycle or it might have went unnoticed?

Thanks for maintainig this project.

import {
	ATN, //missing
	ATNDeserializer, //missing
	CharStream,
	DecisionState, DFA, //missing
	Lexer,
	LexerATNSimulator, //missing
	RuleContext,
	PredictionContextCache, //missing
	Token
} from "antlr4";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions