-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
kubikowski/inanity
#26Labels
Milestone
Description
🐞 bug report
Affected Package
After update zone.js from 0.10.3 to 0.11.1, my code
const bluebirdPatchSymbol = Zone.__symbol__('bluebird') as keyof ZoneType;
const bluebirdPatch = Zone[bluebirdPatchSymbol] as (b: typeof Bluebird) => void;
bluebirdPatch(Bluebird);reports
ERROR in error TS2688: Cannot find type definition file for 'zone.js'.
src/browser/main.ts:14:33 - error TS2304: Cannot find name 'Zone'.
14 const bluebirdPatchSymbol = Zone.__symbol__('bluebird') as keyof ZoneType;
~~~~
src/browser/main.ts:14:70 - error TS2304: Cannot find name 'ZoneType'.
14 const bluebirdPatchSymbol = Zone.__symbol__('bluebird') as keyof ZoneType;
Is this a regression?
Yes, the previous version in which this bug was not present was: 0.10.3Description
"typings" field is missing in new package.json.
🔬 Minimal Reproduction
https://stackblitz.com/...🔥 Exception or Error
🌍 Your Environment
Angular Version:
Anything else relevant?
in #36540
typings property are removed from package.json, instead using files property, because now we have several d.ts files as typings.
"files": [
"./zone.js.d.ts",
"./zone.api.extensions.ts",
"./zone.configurations.api.ts"
],
in #38528
After update to APF, the directories and files options are not compatible,
so we need to remove those fileds to make sure everything work as expected.
Reactions are currently unavailable