Coder Social home page Coder Social logo

Comments (4)

Seao avatar Seao commented on July 28, 2024

I'm trying to upgrade an ionic app changing to Ionic 3 & Angular 4 and I have the same issue. I'm compiling with ionic cordova run ios --rollup --prod. It's working without the --prod flag.

Package

  • angular/core: 4.1.2,
  • angular/compiler-cli: 4.1.2
  • angular2-fullcalendar: ^1.1.1

Issue

$ ionic cordova run ios --rollup --prod
Running app-scripts build: --prod --address 0.0.0.0 --port 8100 --p 8100 --livereload-port 35729 --r 35729 --iscordovaserve --externalIpRequired --nobrowser

[16:54:04]  build prod started ... 
[16:54:04]  clean started ... 
[16:54:04]  clean finished in 2 ms 
[16:54:04]  copy started ... 
[16:54:04]  ngc started ...
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date.
Error: Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in /Users/seao/hbc_app/node_modules/angular2-fullcalendar/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in /Users/seao/hbc_app/node_modules/angular2-fullcalendar/node_modules/@angular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken in /Users/seao/hbc_app/node_modules/angular2-fullcalendar/node_modules/@angular/core/src/di/opaque_token.d.ts```

from ng2-fullcalendar.

KrisBraun avatar KrisBraun commented on July 28, 2024

I got the same error when trying to import this package as a module.

I don't think this package is using the correct approach by including the component directly rather than importing a module, because it's pulling in a separate dependancy on a specific version of Angular. This package uses proper module imports and works for me: https://github.com/lbertenasco/ap-ng2-fullcalendar

from ng2-fullcalendar.

giorgiofellipe avatar giorgiofellipe commented on July 28, 2024

@nekken the solution is kinda straightforward, could you please take a look?

from ng2-fullcalendar.

giorgiofellipe avatar giorgiofellipe commented on July 28, 2024

Specifying paths to @angular inside AngularCLI’s tsconfig.json solved for me.

“paths”: { “@angular/*“: [“../node_modules/@angular/*“] }

from ng2-fullcalendar.

Related Issues (20)

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.