Giter Site home page Giter Site logo

Comments (6)

travist avatar travist commented on May 4, 2024

So I am able to reproduce this, but I honestly don't know what it will take to fix it. I have been scouring the web and apparently this is a very widespread issue with a lot of other projects. Anyone have any ideas how to fix this that would be greatly appreciated.

from angular.

mikethm avatar mikethm commented on May 4, 2024

using ionic2: similar errors

[00:16:48]  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 
            node_modules/ng2-formio/node_modules/@angular/core/core.d.ts, resolving 
            symbol FormioAppConfig in node_modules/ng2-formio/src/formio.config.d.ts, 
            resolving symbol FormioAppConfig in 
            node_modules/ng2-formio/src/formio.config.d.ts 
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 node_modules/ng2-formio/node_modules/@angular/core/core.d.ts, resolving symbol FormioAppConfig in node_modules/ng2-formio/src/formio.config.d.ts, resolving symbol FormioAppConfig in node_modules/ng2-formio/src/formio.config.d.ts
    at SyntaxError.BaseError [as constructor] (node_modules/@angular/compiler/bundles/compiler.umd.js:1597:31)
    at new SyntaxError (node_modules/@angular/compiler/bundles/compiler.umd.js:1795:20)
    at simplifyInContext (node_modules/@angular/compiler/bundles/compiler.umd.js:25774:27)
    at StaticReflector.simplify (node_modules/@angular/compiler/bundles/compiler.umd.js:25786:17)
    at StaticReflector.annotations (node_modules/@angular/compiler/bundles/compiler.umd.js:25282:64)
    at NgModuleResolver.resolve (node_modules/@angular/compiler/bundles/compiler.umd.js:17762:86)
    at CompileMetadataResolver.getNgModuleMetadata (node_modules/@angular/compiler/bundles/compiler.umd.js:18263:64)
    at addNgModule (node_modules/@angular/compiler/bundles/compiler.umd.js:25044:62)
    at node_modules/@angular/compiler/bundles/compiler.umd.js:25055:18
    at Array.forEach (native)

from angular.

mikethm avatar mikethm commented on May 4, 2024

This is resolvable by adding the angular/core etc to peerDeps!

from angular.

travist avatar travist commented on May 4, 2024

Awesome! Thank you! But do we need to add that peerDep to the package.json of this project?

from angular.

mikethm avatar mikethm commented on May 4, 2024

i will try it and let you know.

from angular.

qasimraza1979 avatar qasimraza1979 commented on May 4, 2024

Good @mikethm , could you please provide a bit more info. Here below is my part of package.json

"peerDependencies": {
" angular/common": "4.4.3",
"angular/core": "4.4.3",
"angular/forms": "4.4.3",
"angular/http": "4.4.3",
"ionic": "3.9.2",
"ionic-angular": "^3.7.1",
"ionicons": "3.0.0",
"rxjs": "5.4.3",
"zone.js": "0.8.18"
},
"dependencies": {
"angular/animations": "4.4.3",
"angular/common": "4.4.3",
"angular/compiler": "4.4.3",
"angular/compiler-cli": "4.4.3",
"angular/core": "4.4.3",
"angular/forms": "4.4.3",
"angular/http": "4.4.3",
"angular/platform-browser": "4.4.3",
"angular/platform-browser-dynamic": "4.4.3",
"angular/platform-server": "4.4.3",
"angular/router": "4.4.3",
"angular/upgrade": "4.4.3",
"ionic-native/core": "3.12.1",
"ionic/storage": "2.0.1",
"ionic-angular": "3.7.1",
"ionicons": "3.0.0",
"ionic": "3.9.2",
"rxjs": "5.4.3",
"zone.js": "0.8.18"
},
"devDependencies": {
"ionic/app-scripts": "2.1.4",
"monsenso/components": "0.0.2-prerelease.14",
"monsenso/model": "1.2.3-prerelease.108",
"monsenso/user-api": "3.1.0-prerelease.21",
"types/core-js": "0.9.43",
"types/jasmine": "^2.5.41",
"types/node": "^8.0.33",
"angular-router-loader": "^0.6.0",
"angular2-template-loader": "^0.6.2",
"codelyzer": "^3.2.0",
"del-cli": "^1.1.0",
"extract-text-webpack-plugin": "3.0.0",
"html-loader": "^0.5.1",
"html-webpack-plugin": "^2.28.0",
"ionic-mocks": "^1.0.1",
"jasmine": "^2.8.0",
"jasmine-core": "^2.8.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^1.7.1",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "^1.0.1",
"karma-coverage-istanbul-reporter": "^1.3.0",
"karma-jasmine": "^1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-junit-reporter": "^1.2.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "2.0.4",
"lite-server": "^2.3.0",
"node-sass": "^4.5.0",
"null-loader": "^0.1.1",
"raw-loader": "^0.5.1",
"sass-lint": "^1.11.1",
"tslint": "^5.0.0",
"ts-loader": "^2.3.7",
"typescript": "2.3.4",
"webpack": "^3.0.0"
}

from angular.

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.