Code Monkey home page Code Monkey logo

nl2br-pipe's People

Contributors

tvicpe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nl2br-pipe's Issues

Package on NPM does not contains UMD module

The package available on NPM does not seems to contains the UMD packaged module (dist/bundles/nl2br-pipe-module.umd.js).
This make JEST fails to import the module correctly and all unit test fails.

Unable to compile with Angular 5

Hi,

unfortunately, it's not possible to compile an app with Angular 5 (via angular-cli), including this module.

I get the following error message when I try to compile with 'ng serve':

ERROR in ./node_modules/nl2br-pipe/src/nl2br.pipe.ts
Module build failed: Error: /path/to/project/node_modules/nl2br-pipe/src/nl2br.pipe.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (/path/to/project/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:677:23)
at plugin.done.then (/path/to/project/node_modules/@ngtools/webpack/src/loader.js:467:39)
at process._tickCallback (internal/process/next_tick.js:109:7)

You can read about this issue e.g. here: angular/angular-cli#8284

Especially this part gives the hint on the issue: "You have TS files in your node_modules. This really goes against how libraries should be packaged: libraries should never ship their source .ts files."

angular/angular-cli#8284 (comment)

The only (very ugly) way to solve this problem was to add this to the tsconfig.app.json of my app:

"include": [ "../node_modules/nl2br-pipe/**/*.ts", "**/*.ts" ],

Kind regards
Andi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.