Skip to content

'ionic serve' ENOENT 'main.d.ts' after updating Typings to 1.0.4 #1021

@tsbignoob

Description

@tsbignoob

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions