Closed jonstuebe closed 2 months ago
Getting the following error:
Error [RollupError]: Expected '{', got 'interface'
When parsing a file with the first line being:
export interface ParsedUrlQuery extends Record<string, string | string[]> {}
Expect the ts extension to be parsed as typescript or transpiled prior to being parsed with types removed for AST parsing.
ts
n/a
2.0.2
18.12.0
yarn
macOS
Problem
Getting the following error:
Error [RollupError]: Expected '{', got 'interface'
When parsing a file with the first line being:
export interface ParsedUrlQuery extends Record<string, string | string[]> {}
Expected behavior
Expect the
ts
extension to be parsed as typescript or transpiled prior to being parsed with types removed for AST parsing.Minimal reproduction URL
n/a
Version
2.0.2
Node.js version
18.12.0
Package manager
yarn
Operating system
macOS
Contributions