Hi,
I’m new in ionic, please help me
I create a new app using CLI and I copy the contents of the files of this app:
and when try to run it I get this error
(Typescript Error home.ts is not a module)
Please help me
Hi,
I’m new in ionic, please help me
I create a new app using CLI and I copy the contents of the files of this app:
and when try to run it I get this error
(Typescript Error home.ts is not a module)
Please help me
Its looks like error of giving wrong path while importing that home.ts file.
Can you paste what all error you are getting so that we can understand clearly where and what is that error
Thanks for replying,
I changed “home” to “kk”
see the screenshot>
This issue solved, but when I run it didn’t show any thing!!
Why?
@vnyksj help me
This is error in developer tools:
Well, as the error says, have you imported BrowserModule
into your app module?
Yes, in app.module.ts
Well, at least this thread will be a great resource for anybody else with a similar problem, because they’ll easily find it by searching for the text of their error message.
Oh wait, no it won’t, because all the relevant info is unsearchable due to being posted as worthless images.
I’ll post it as text.
Error:
Unhandled Promise rejection: No ErrorHandler. Is platform module (BrowserModule) included? ; Zone: ; Task: Promise.then ; Value: Error: No ErrorHandler. Is platform module (BrowserModule) included?
at g (polyfills.js:3)
at main.js:5050
at t.invoke (polyfills.js:3)
at Object.onInvoke (main.js:4424)
at t.invoke (polyfills.js:3)
at n.run (polyfills.js:3)
at NgZone.run (main.js:4293)
at PlatformRef_.bootstrapModuleFactoryWithZone (main.js:5045)
at main.js:5087
at t.invoke (polyfills.js:3)
at n.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at n.runTask (polyfills.js:3)
at a (polyfills.js:3) Error: No ErrorHandler. Is platform module (BrowserModule) included?
at g (http://localhost:8100/build/polyfills.js:3:7133)
at http://localhost:8100/build/main.js:5050:23
at t.invoke (http://localhost:8100/build/polyfills.js:3:14529)
at Object.onInvoke (http://localhost:8100/build/main.js:4424:37)
at t.invoke (http://localhost:8100/build/polyfills.js:3:14469)
at n.run (http://localhost:8100/build/polyfills.js:3:9741)
at NgZone.run (http://localhost:8100/build/main.js:4293:62)
at PlatformRef.bootstrapModuleFactoryWithZone (http://localhost:8100/build/main.js:5045:23)
at http://localhost:8100/build/main.js:5087:59
at t.invoke (http://localhost:8100/build/polyfills.js:3:14529)
at n.run (http://localhost:8100/build/polyfills.js:3:9741)
at http://localhost:8100/build/polyfills.js:3:6774
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:15213)
at n.runTask (http://localhost:8100/build/polyfills.js:3:10390)
at a (http://localhost:8100/build/polyfills.js:3:5313)
o @ polyfills.js:3
polyfills.js:3 Error: Uncaught (in promise): Error: No ErrorHandler. Is platform module (BrowserModule) included?
Error: No ErrorHandler. Is platform module (BrowserModule) included?
at g (polyfills.js:3)
at main.js:5050
at t.invoke (polyfills.js:3)
at Object.onInvoke (main.js:4424)
at t.invoke (polyfills.js:3)
at n.run (polyfills.js:3)
at NgZone.run (main.js:4293)
at PlatformRef.bootstrapModuleFactoryWithZone (main.js:5045)
at main.js:5087
at t.invoke (polyfills.js:3)
at n.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at n.runTask (polyfills.js:3)
at a (polyfills.js:3)
at g (polyfills.js:3)
at main.js:5050
at t.invoke (polyfills.js:3)
at Object.onInvoke (main.js:4424)
at t.invoke (polyfills.js:3)
at n.run (polyfills.js:3)
at NgZone.run (main.js:4293)
at PlatformRef._bootstrapModuleFactoryWithZone (main.js:5045)
at main.js:5087
at t.invoke (polyfills.js:3)
at n.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at n.runTask (polyfills.js:3)
at a (polyfills.js:3)
at g (polyfills.js:3)
at l (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at n.runTask (polyfills.js:3)
at a (polyfills.js:3)
o @ polyfills.js:3
Guys help me please…
@rapropos
@SigmundFroyd
@vnyksj
@lilMarc051372
@mi3infomaze
I can recommend you to fork from Ionic 2 blank app, then add IoT related functionality. There are a lot of breaking changes between latest Ionic 2 application and ionic2-home-automation-app
.
Thanks for replying,
I create new app then I took the related functions.
The problem I think in platform because when I run “ionic build” says "You cannot run iOS unless you are on Mac OSX."
When I saw this, I run this “ionic platform add browser” then "ionic build"
Still get errors.
I don’t why should I use Mac.
Because Xcode won’t run on anything but MacOS.
ionic run for any platforms.
You can’t build an iOS app without Xcode (unless you use some sort of cloud building service).
I won’t build an app for iOS.
Thank for all, Issue solved