question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[V4-beta.7] ERROR: Can't find module interface

See original GitHub issue

Bug 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

  1. update to ionic 4.0.0-beta.6 or higher
  2. ionic cordova build android --release
  3. 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:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DBnR1commented, Sep 5, 2018

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.

0reactions
ionitron-bot[bot]commented, Oct 13, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found