Giter VIP home page Giter VIP logo

Comments (20)

joschne avatar joschne commented on May 30, 2024 1

After upgrading from Angular 4 to 5 I get this compilation error

ERROR in ./node_modules/angular2-elastic-input/src/elastic-input.module.ts Module build failed: Error: /Users/admin/Code/geovistory/client/node_modules/angular2-elastic-input/src/elastic-input.module.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 (/Users/admin/Code/geovistory/client/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:653:23) at plugin.done.then (/Users/admin/Code/geovistory/client/node_modules/@ngtools/webpack/src/loader.js:467:39) at process._tickCallback (internal/process/next_tick.js:103:7) @ ./node_modules/angular2-elastic-input/index.js 6:9-46 @ ./src/app/app.module.ts @ ./src/main.ts @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts

Any help is appreciated, thanks!

from angular2-elastic-input.

arun-maddheshia avatar arun-maddheshia commented on May 30, 2024 1

@spirosikmd i just run ng serve --aot or with ng build --prod

from angular2-elastic-input.

spirosikmd avatar spirosikmd commented on May 30, 2024 1

@arun-maddheshia @bartes @joschne this should be fixed! Please test and re-open this issue if it does not work!

from angular2-elastic-input.

joschne avatar joschne commented on May 30, 2024 1

@spirosikmd thank you, it works!

npm i angular2-elastic-input@latest --save
... solved the problem for me :-)

from angular2-elastic-input.

spirosikmd avatar spirosikmd commented on May 30, 2024

Thank you @bartes! Yes, I need to work on the support for angular 5!

from angular2-elastic-input.

bartes avatar bartes commented on May 30, 2024

I guess it should be super simple. Adding
export * from './src/elastic-input.directive.ts'; to index.ts should help

from angular2-elastic-input.

spirosikmd avatar spirosikmd commented on May 30, 2024

Hey @bartes! When I run the docs example with the latest angular I don't get an error. Everything works. How can I reproduce the issue? Does this happen in a project bootstrapped with angular-cli? Otherwise, I am not what to update and why? Thanks!

from angular2-elastic-input.

bartes avatar bartes commented on May 30, 2024

yes angular-cli ..and I guess this is a case : angular/angular-cli#8284

from angular2-elastic-input.

bartes avatar bartes commented on May 30, 2024

with a bit of configuration I guess it doesn't require a change, but angular dependency has to be somehow untied. not sure

from angular2-elastic-input.

spirosikmd avatar spirosikmd commented on May 30, 2024

Thank you for the effort on testing with the cli. Reading through the comments in angular/angular-cli#8284, I think this is indeed a cli configuration issue. What do you mean by angular dependency has to be somehow untied?

from angular2-elastic-input.

bartes avatar bartes commented on May 30, 2024

currently it loads angular4 from within this package and I would like to have it picked up from my project.

from angular2-elastic-input.

arun-maddheshia avatar arun-maddheshia commented on May 30, 2024

@spirosikmd any update on it ?

from angular2-elastic-input.

spirosikmd avatar spirosikmd commented on May 30, 2024

@arun-maddheshia and @joschne I will look into the Angular Package format and try to update library accordingly! Expect a PR soon! Thank you for updating this issue 👍

from angular2-elastic-input.

arun-maddheshia avatar arun-maddheshia commented on May 30, 2024

yes please its make our life easy.

from angular2-elastic-input.

spirosikmd avatar spirosikmd commented on May 30, 2024

There is an issue currently with the semantic release. When this is fixed, there will be a new version!

from angular2-elastic-input.

spirosikmd avatar spirosikmd commented on May 30, 2024

There is a new version 1.4.0, which fixes this issue. Please try it out and let me know if it works!

from angular2-elastic-input.

arun-maddheshia avatar arun-maddheshia commented on May 30, 2024

@spirosikmd getting error at production build or with --aot

ERROR in Error during template compile of 'UsersModule'
  Function calls are not supported in decorators but 'ElasticInputModule' was called.

from angular2-elastic-input.

spirosikmd avatar spirosikmd commented on May 30, 2024

@arun-maddheshia can you please provide a bit more information? What do you mean by production build? When I run ng build in the test project that uses angular2-elastic-input everything is working. Also, how do you use --aot? How can I reproduce it? Thanks!

from angular2-elastic-input.

arun-maddheshia avatar arun-maddheshia commented on May 30, 2024

@spirosikmd any update?

from angular2-elastic-input.

spirosikmd avatar spirosikmd commented on May 30, 2024

Hey @arun-maddheshia! Not yet... I am not sure I will have time the following week to work on this issue. The only thing that is not working is AOT. But I guess this is an important feature to support. Please feel free to try and fix and submit a PR. I would much appreciate it!

from angular2-elastic-input.

Related Issues (6)

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.