Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing ponyfills when building an Angular solution using the symbol-observable library #15

Closed
morsagmon opened this issue Aug 12, 2022 · 1 comment

Comments

@morsagmon
Copy link

Trying to build an Angular 13 Ionic 6 solution after a migration to capacitor 4 (from capacitor 3) and a full npm cleanup and re-installation, Getting:

Error: Cannot find module './ponyfill.js'
Require stack:
- C:\Users\morsa\Documents\IDrive-Sync\Dev Env\Projects\simplify-pilot\node_modules\symbol-observable\lib\index.js
- C:\Users\morsa\Documents\IDrive-Sync\Dev Env\Projects\simplify-pilot\node_modules\@angular\cli\lib\init.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\morsa\Documents\IDrive-Sync\Dev Env\Projects\simplify-pilot\node_modules\symbol-observable\lib\index.js:7:17)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot\\node_modules\\symbol-observable\\lib\\index.js',
    'C:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot\\node_modules\\@angular\\cli\\lib\\init.js'
  ]
}
[ERROR] An error occurred while running subprocess ng.

        ng.cmd run app:build exited with exit code 1.

I guess this symbol-observable is used in rxjs (at least).

I tried manually installing:
npm i ponyfill

This did install ponyfill 0.0.1

However, still getting the above error.

Any pointers on how to solve are welcomed!

@sindresorhus
Copy link
Owner

Wrong repo

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants