-
Notifications
You must be signed in to change notification settings - Fork 641
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
'ionic serve' ENOENT 'main.d.ts' after updating Typings to 1.0.4 #1021
Comments
workaround for people encountering this, just renaming/copying "typings/index.d.ts" to "main.d.ts" would let 'ionic serve' runs and everything looks ok. |
I too am suffering from this. @tsbignoob temporary solution seems to work for me. |
maybe the core code in ionic2 depend vi typings/main.d.ts. and nobody konws typings will have breaking changes from 0.8.x to 1.0.x. read more from typings release 1.0. |
Problem is in:
dont clone the index.d.ts as main.d.ts. Either set a symlink or create a main.d.ts in /typings/ with the following content:
|
updating the browerify and tsify along with it will fix this issue for use with typings>=1.0.4. |
Hello all! Is this still an issue with the latest version of ionic? Thanks! |
@jgw96 not tested but should be yeah. |
This has been fixed with the 2.0 release of our browserify ts package. Thanks for using Ionic! |
Could someone help me? Thanks in advance :) |
On windows: ngc error: Error: Error at C:/abraham_new/ImmerMedical/.tmp/pages/register/register.ts:14:10: Property 'loading' does not exist on type 'RegisterPage'. |
Typings 1.0.x doesn't generate 'main.d.ts' or 'browser.d.ts' by default anymore. After upgrading typings to 1.0.4, the typings folder will contain only one 'index.d.ts'.
Running 'ionic serve' will result in the following error:
...
Caught exception:
Error: ENOENT: no such file or directory, lstat 'Y:\myapp\typings\main.d.ts'
at Error (native)
at Object.fs.lstatSync (fs.js:887:18)
at Object.realpathSync (fs.js:1518:21)
at Y:\sos\sos-ms-ts\node_modules\tsify\index.js:58:38
at Array.map (native)
at DestroyableTransform.flush as _flush
at DestroyableTransform. (Y:\sos\sos-ms-ts\node_modules\through2\node_modules\readable-stream\lib_stream_transform.js:115:49)
at DestroyableTransform.g (events.js:273:16)
at emitNone (events.js:80:13)
at DestroyableTransform.emit (events.js:179:7)
...
Seems like something somewhere requires the existence of 'main.d.ts'. Grepping for 'main.d.ts' doesn't show anything interesting, just one reference in 'platform\android\assets\www\build\js\app.bundle.js.map' which is probably not the one causing it.
The text was updated successfully, but these errors were encountered: