[!] (plugin Typescript) TypeError: Cannot read properties of undefined (reading 'text') #5

Closed
opened 2021-11-30 23:58:58 +01:00 by eyab · 1 comment
eyab commented 2021-11-30 23:58:58 +01:00 (Migrated from github.com)

When I try to npm run prepare I am getting the following error. I tried even without changing anything from the code but still, without any changes, I am getting the following. Any help will be appreciated.


src/index.ts → dist/index.cjs, ./dist...
[!] (plugin Typescript) TypeError: Cannot read properties of undefined (reading 'text')
TypeError: Cannot read properties of undefined (reading 'text')
    at getExportedSymbolFromExportSpecifier (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2082:41)
    at createExportSpecifierFromNameAndModifiers (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2103:29)
    at visitVariableStatement$5 (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2434:36)
    at visitNode$c (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2537:16)
    at /Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2554:13
    at visitNodes (/Users/eya/Downloads/lang-example-main-copy/node_modules/typescript/lib/typescript.js:29880:30)
    at Object.forEachChild (/Users/eya/Downloads/lang-example-main-copy/node_modules/typescript/lib/typescript.js:30122:24)
    at Object.childContinuation (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2553:52)
    at visitModuleDeclaration$8 (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2455:28)
    at visitNode$c (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2534:16)
When I try to ` npm run prepare` I am getting the following error. I tried even without changing anything from the code but still, without any changes, I am getting the following. Any help will be appreciated. ``` src/index.ts → dist/index.cjs, ./dist... [!] (plugin Typescript) TypeError: Cannot read properties of undefined (reading 'text') TypeError: Cannot read properties of undefined (reading 'text') at getExportedSymbolFromExportSpecifier (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2082:41) at createExportSpecifierFromNameAndModifiers (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2103:29) at visitVariableStatement$5 (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2434:36) at visitNode$c (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2537:16) at /Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2554:13 at visitNodes (/Users/eya/Downloads/lang-example-main-copy/node_modules/typescript/lib/typescript.js:29880:30) at Object.forEachChild (/Users/eya/Downloads/lang-example-main-copy/node_modules/typescript/lib/typescript.js:30122:24) at Object.childContinuation (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2553:52) at visitModuleDeclaration$8 (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2455:28) at visitNode$c (/Users/eya/Downloads/lang-example-main-copy/node_modules/rollup-plugin-ts/dist/cjs/index.js:2534:16) ```
marijnh commented 2021-12-01 08:15:00 +01:00 (Migrated from github.com)

Seems rollup-plugin-ts pushed a broken or incompatible update. I've upgraded it to version 2.0 in caaf2ae, which seems to resolve the problem.

Seems rollup-plugin-ts pushed a broken or incompatible update. I've upgraded it to version 2.0 in caaf2ae, which seems to resolve the problem.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lang-example#5
No description provided.