zen-fs / core

A filesystem, anywhere
https://zen-fs.github.io/core/
MIT License
103 stars 14 forks source link

Missing Modules #94

Closed chinonso098 closed 1 month ago

chinonso098 commented 1 month ago

Hi there, I just got back again to switching from BrowserFs to ZenFs. I am currently running Angular 18 & Node v22.2.0

I get the follwing errors when the app tries to build. Any ideas on what could be the cause ?

image

Thanks for the assist.

james-pre commented 1 month ago

@chinonso098 What versions of @zenfs packages are you using?

chinonso098 commented 1 month ago

@james-pre
"@zenfs/core": "^0.16.1",
"@zenfs/dom": "^0.2.14",

chinonso098 commented 1 month ago

Quick update. In my tsconfig.json file, I updated the module and the moduleResolution.

from: "module": "es2022", "moduleResolution": "node",

to: "module": "esnext", "moduleResolution": "bundler",

I would have gone (Node16, or NodeNext) for the module and the moduleResolution, but that appears to cause issues with Angular imports like (import { AfterViewInit, OnInit,OnDestroy, Component, ElementRef, ViewChild} from '@angular/core';)

This is the only File that can't be found.

image

I did a search, and there is only one reference to it: in the locked.d.ts file

image

Any idea on where I can find it ?

thanks for the assist

chinonso098 commented 1 month ago

if I click on the import '../polyfills.js'

image

it brings me here

image

could that be the cause of the issue.

other import links lead to .d.ts files have actual export content

like the cred.js import for example, the link leads to a cred.d.ts files that exports the Cred interface

image

james-pre commented 1 month ago

@chinonso098 PromiseWithResolvers should be provided in ESNext.Promise (TS lib). Please ensure you include that in the TS "lib" config.

chinonso098 commented 1 month ago

You are the man!!! Thank you very much. It builds successfully

james-pre commented 1 month ago

@chinonso098 Glad to help! I hope you enjoy using ZenFS. Please let me know if you have any problems.