Skip to content

Universal build crashes because of .ts source files #32

@wnabil

Description

@wnabil

when i am trying to import the module and run the universal build i got this error
ERROR in ./~/ng2-file-drop/module/file-drop.module.ts Module build failed: Error: Typescript emitted no output for /home/orange/Desktop/projects/maker/cli-universal-demo/node_modules/ng2-file-drop/module/file-drop.module.ts. You should not need to recompile .ts files in node_modules. Please contact the package author to advise them to use --declaration --outDir. More https://github.com/Microsoft/TypeScript/issues/12358 at Object.loader (/home/orange/Desktop/projects/maker/cli-universal-demo/node_modules/ts-loader/dist/index.js:32:15) @ ./dist/ngfactory/src/app/app.server.module.ngfactory.ts 150:11-59 @ ./src/server.ts
the problem as i expect is that the package contains the .ts source files and they must not be inside the module package on the npm.
but if i try to delete them manually the application also crashes because the ng2filedropmodule is declared inside the ts files.
version : 1.1.0
angular version : 4.1.0
webpack : 2.2.0
example repo : https://github.com/evertonrobertoauler/cli-universal-demo
run npm install ng2-file-drop
and include it inside whitelist array inside webpack.config
import the module inside app.module

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions