Urigo / Ionic2CLI-Meteor-WhatsApp

WhatsApp Clone tutorial with Ionic 2.0 CLI and Meteor Server
https://www.angular-meteor.com/tutorials/whatsapp2/ionic/setup
163 stars 185 forks source link

Cannot find type definition file for '@types/meteor'. #183

Open ken4ward opened 6 years ago

ken4ward commented 6 years ago

I got this error on the CLI when I ran this. The browser displays a blank page and when I checked the console it displays this:

[06:36:27]  transpile started ...
[06:36:30]  typescript error
            Cannot find type definition file for '@types/meteor'.

[06:36:30]  typescript error
            Cannot find type definition file for '@types/meteor-accounts-phone'.

[06:36:30]  typescript error
            Cannot find type definition file for '@types/meteor-collection-hooks'.

[06:36:30]  dev server running: http://localhost:8100/

Browser console error

Refused to apply style from 'http://localhost:8100/build/main.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
vendor.js Failed to load resource: the server responded with a status of 404 (Not Found)
main.js Failed to load resource: the server responded with a status of 404 (Not Found)
vendor.js Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 Refused to execute script from 'http://localhost:8100/build/vendor.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
main.js Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 Refused to execute script from 'http://localhost:8100/build/main.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to apply style from 'http://localhost:8100/build/main.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Please kindly help

HectorRPL commented 6 years ago

Same error, but the server start and shut down

C:\Ionic2CLI-Meteor-WhatsApp-master>ionic serve
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[14:51:14]  watch started ...
[14:51:14]  build dev started ...
[14:51:14]  clean started ...
[14:51:14]  clean finished in 4 ms
[14:51:14]  copy started ...
[14:51:14]  deeplinks started ...
[14:51:14]  deeplinks finished in 13 ms
[14:51:14]  transpile started ...
[14:51:16]  typescript error 
            Cannot find type definition file for '@types/meteor'.

[14:51:16]  dev server running: http://localhost:8100/ 

[OK] Development server running!
     Local: http://localhost:8100
     External: http://192.168.100.14:8100
     DevApp: whatsapp@8100 on TIGRE

C:\Ionic2CLI-Meteor-WhatsApp-master>_
EdwinLee314 commented 6 years ago

Same error. The solution is: In package.json, use fixed version package "@types/meteor": "1.4.8".