[V4-beta.7] ERROR: Can't find module interface
See original GitHub issueBug Report
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.1.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.6
@angular-devkit/core : 0.7.5
@angular-devkit/schematics : 0.7.5
@angular/cli : 6.1.5
@ionic/ng-toolkit : 1.0.7
@ionic/schematics-angular : 1.0.5
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : none
Cordova Plugins : no whitelisted plugins (0 plugins total)
System:
Android SDK Tools : 26.1.1 (/home/ynikolov/Android/Sdk/)
NodeJS : v10.6.0 (/usr/local/bin/node)
npm : 6.1.0
OS : Linux 4.13
Describe the Bug I can’t build my application because of this error:
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 695 bytes [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 98.3 kB [initial] [rendered]
ERROR in node_modules/@ionic/angular/dist/types/components/toast/toast-interface.d.ts(1,34): error TS2307: Cannot find module '../../interface'.
[ERROR] An error occurred while running subprocess ng.
Steps to Reproduce
- update to ionic 4.0.0-beta.6 or higher
- ionic cordova build android --release
- ionic serve (you can see it also here, but some how after you change something in the code, application loads)
Expected Behavior To be able to start my application without seeing any errors from Ionic core.
Additional Context This error occurred after i upgrade my Ionic 4-beta.4 to beta.7
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
[V4-beta.7] ERROR: Can't find module interface #15421 - GitHub
d.ts(1,34): error TS2307: Cannot find module '../../interface'. [ERROR] An error occurred while running subprocess ng. ... To be able to start my ...
Read more >Cannot find module error for interfaces in Angular Universal ...
Change import path of Portfolio interface from the one starting with 'src/app/*' to the direct path. For example, for your ...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
In my case, I got it like this "Module not found: Error: Can't resolve 'react-icons/fa' in 'C:\Users\user\Desktop\Projects\Address Locator\ ...
Read more >TIL: TypeScript | Fix "TS2307: Cannot find module 'src' or its ...
Question. How to fix? error TS2307: Cannot find module 'src' or its corresponding type declarations.
Read more >cannot find module or its corresponding type declarations file
On building my project, I was getting this error (similarly, regarding an import of a Svelte component in a .ts file):. (!) Plugin...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am unable to re-create it with a new app.
For now I’m just adding
// @ts-ignore
to the affected files such as..\node_modules\@ionic\angular\dist\types\components\toast\toast-interface.d.ts
and everything works.Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.