eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

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

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

Nobody has claimed this yet.

Dominant language
Java
Stars
201
Forks
76
Avg merge
4d 7h
Merged PRs (30d)
21

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.

Contributor guide

Open the contributing guide

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.