Skip to content

Error on yarn build (npm run build) #423

@wassertim

Description

@wassertim

build command gives an error:

[!] (plugin dts) TypeError: Could not load /Users/wassertim/dev/alphaTab/dist/types/alphatab.d.ts: ts.isNamedTupleMember is not a function
TypeError: Could not load /Users/wassertim/dev/alphaTab/dist/types/alphatab.d.ts: ts.isNamedTupleMember is not a function
    at DeclarationScope.convertTypeNode (/Users/wassertim/dev/alphaTab/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.js:766:16)
    at DeclarationScope.convertMembers (/Users/wassertim/dev/alphaTab/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.js:711:22)
    at DeclarationScope.convertTypeNode (/Users/wassertim/dev/alphaTab/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.js:754:25)
    at Transformer.convertVariableStatement (/Users/wassertim/dev/alphaTab/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.js:1176:19)
    at Transformer.convertStatement (/Users/wassertim/dev/alphaTab/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.js:1078:25)
    at new Transformer (/Users/wassertim/dev/alphaTab/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.js:995:18)
    at transformFile (/Users/wassertim/dev/alphaTab/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.js:1315:29)
    at Object.load (/Users/wassertim/dev/alphaTab/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.js:1370:33)
    at /Users/wassertim/dev/alphaTab/node_modules/rollup/dist/shared/rollup.js:18720:25

error Command failed with exit code 1.

Is it only me? Or it is a known bug?

Your environment

  • Version used: (master branch)
  • Platform used: NPM / Typescript
  • Rendering engine used: SVG (default), HTML5 or GDI
  • Browser Name and Version: Chrome 86
  • Operating System and version (desktop or mobile): Mac OS X 10.15.7
  • Link to your project: (there is no project yet)

Expected Results

build is successful

Observed Results

yarn build gives an error:
[!] (plugin dts) TypeError: Could not load /alphaTab/dist/types/alphatab.d.ts: ts.isNamedTupleMember is not a function

Steps to Reproduce (for bugs)

  1. yarn
  2. yarn build

or

  1. npm install
  2. npm run build

Possible Solution

I could investigate, but I need to know if it is only me who has this error

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions