Skip to content
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

Universal build crashes because of .ts source files #32

Open
wnabil opened this issue Jul 5, 2017 · 1 comment
Open

Universal build crashes because of .ts source files #32

wnabil opened this issue Jul 5, 2017 · 1 comment
Labels

Comments

@wnabil
Copy link

wnabil commented Jul 5, 2017

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

@leewinder
Copy link
Owner

Looking at the latest build, the .js script file is present - does this error still happen with v5.0.0?

@leewinder leewinder added the bug label Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants