wwd messing up .ts files in my project's node_modules

Open
#1,073 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
tooling, web-dev

Research direction

Reproduce the problem with WWD 0.10.14.202205271506 or 1.0.1.202211231523 in an Ionic project, then inspect changes under node_modules/@ionic/angular, especially dist/directives/control-value-accessors/value-accessor.d.ts. Confirm the cause by checking whether WWD modifies these TypeScript files, and consider the issue done when the files remain unchanged and ionic cordova build android succeeds.

Written by the indexing model from the issue text.

Description

Not sure why this is happening, but if I enable wwd (version 0.10.14.202205271506 and 1.0.1.202211231523) in my Eclipse, the typescript files in my Ionic project's node_modules/@ionic/angular are modified such that when I try ionic cordova build android, it produces the following error:

ERROR in node_modules/@ionic/angular/dist/directives/control-value-accessors/value-accessor.d.ts:16:23 - error TS2314: Generic type 'ɵɵBaseDef<T>' requires 1 type argument(s). static ngBaseDef: ɵngcc0.ɵɵBaseDef;

The only way to fix this is to erase the entire node_modules directory and run npm install again, but if I continue to use Eclipse, after a while, the typescript files will be modified again and error will reappear.

Dominant language
Java
Stars
203
Forks
76
Avg merge
1d 5h
Merged PRs (30d)
30

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eclipse-wildwebdeveloper/wildwebdeveloper

All issues in eclipse-wildwebdeveloper/wildwebdeveloper

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.