Comments (16)
I have the same issue, can't use ng-cli 1.0 due to this bug.
ERROR in 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 C:/msweb/studioweb/node_modules/ng-mslib/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol Injectable in C:/msweb/studioweb/node_modules/ng-mslib/node_modules/@angular/core/src/di.d.ts, resolving symbol Injectable in C:/msweb/studioweb/node_modules/ng-mslib/node_modules/@angular/core/src/core.d.ts, resolving symbol Injectable in C:/msweb/studioweb/node_modules/ng-mslib/node_modules/@angular/core/index.d.ts, resolving symbol NgmslibService in C:/msweb/studioweb/node_modules/ng-mslib/dist/services/ngmslib.service.d.ts, resolving symbol NgmslibService in C:/msweb/studioweb/node_modules/ng-mslib/dist/services/ngmslib.service.d.ts
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './locale/app/app-module.ngfactory' in 'C:\msweb\studioweb\src'
@ ./src/main.ts 6:0-71
@ multi ./src/main.ts
worked fine in release rc.1
from angular2-image-gallery.
@rustygreen still having the same issue?
from angular2-image-gallery.
@born2net, yes I am. I have not found a fix yet.
from angular2-image-gallery.
@rustygreen Rob helped out, I had to change in my package.json lib dependencies to peerDependencies and fixed the issue.
from angular2-image-gallery.
Hi @born2net can you specify how your package.json file ended?
Mine is
"dependencies": {
},
"devDependencies": {
"@angular/common": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"reflect-metadata": "^0.1.10",
"rxjs": "^5.2.0",
"zone.js": "^0.8.5",
"@types/core-js": "^0.9.39",
"typescript": "^2.2.1"
},
"peerDependencies": {
"@angular/common": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/platform-browser": "^4.0.0"
}
but still reproduce the error
from angular2-image-gallery.
see here:
https://github.com/born2net/ng-mslib/blob/master/package.json
this is a lib that is USED BY an angular project!
from angular2-image-gallery.
Thanks for your support guys. I moved the angular dependencies to peerDependencies for now and published a new version of angular2-image-gallery to NPM (0.6.2).
However, if you'd like to use the gallery with Angular-Cli 1.0.0 there are two things to consider:
- Import BrowserAnimationsModule in your project:
imports: [
Angular2ImageGalleryModule,
BrowserAnimationsModule, <---- add this to your project
BrowserModule,
FormsModule,
HttpModule,
],
- IE 11 currently not working
I only had a quick look at this and it didn't get pass the Loading... screen. I'm planning on having a clean migration to Angular 4 and take care about browser compatibility as soon as I find some free time somewhen. But I'm also happy to accept PRs as you know.
If there are any different issues with the new version regarding angular-cli 1.0.0 please raise a new issue for this. I will close this one for now.
from angular2-image-gallery.
I'm still receiving the same error as @rustygreen even after your 0.6.2 update.
package.json:
...
"dependencies": {
"@angular/animations": "^4.0.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/platform-server": "^4.0.0",
"@angular/router": "^4.0.0",
"angular2-image-gallery": "^0.6.2",
"hammerjs": "^2.0.8",
"typescript": "^2.2.1",
"web-animations-js": "^2.2.2",
"zone.js": "^0.6.23"
},
"devDependencies": {
"@angular/cli": "^1.0.0",
"@types/hammerjs": "^2.0.33",
"@types/jasmine": "2.5.38",
"@types/node": "^6.0.42",
"codelyzer": "~2.0.0-beta.1",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "2.5.0",
"karma": "1.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"protractor": "4.0.9",
"ts-node": "1.2.1",
"tslint": "^4.0.2",
"typescript": "~2.0.3",
"webdriver-manager": "10.2.5"
}
}
Error is here:
ERROR in 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 e
xported function, resolving symbol Injectable in D:/.../node_modules/angular2-image-gallery/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in D:/.../node_modules/angular2-image-gallery/node_modules/@angular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken in D:/.../node_modules/angular2-image-gallery/node_
modules/@angular/core/src/di/opaque_token.d.ts
(...) are just placeholder values for actual file path
from angular2-image-gallery.
It seems like we've to do some work for being AOT-compatible:
https://github.com/rangle/angular-2-aot-sandbox
If anyone finds and/or removes the remaining issues in the code or knows of an easy way to find the 'not-aot-compatible' lines of code, please contribute. :)
Otherwise I will have a look at this as soon as I'll find some free time.
from angular2-image-gallery.
I got the entire thing to work by downloading your source code and adding it to my folder structure and then importing each into the app module and declaring/providing the component/service.
from angular2-image-gallery.
Interesting, so we have a dirty workaround. ;)
So it could also be related to my whacky approach to create the library...
However, this issue remains and we need to fix it.
from angular2-image-gallery.
Alright, folks. I changed the library creation process to use the NGC rather than the TSC compiler. With the new approach even AOT and the angular-cli 1.0.0 integration shouldn't be an issue anymore.
Could one of you retry with the newly published angular2-image-gallery 0.7.0 version?
from angular2-image-gallery.
Update for ng build --prod
included in 0.7.1.
Would love to hear feedback regarding this issue. Could somebody test it? Otherwise I'll close this issue.
from angular2-image-gallery.
I have issue with v0.7.4
$ ng --version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
@angular/cli: 1.0.0
node: 6.10.0
os: darwin x64
@angular/animations: 4.0.2
@angular/common: 4.0.2
@angular/compiler: 4.0.2
@angular/core: 4.0.2
@angular/flex-layout: 2.0.0-beta.7
@angular/forms: 4.0.2
@angular/http: 4.0.2
@angular/platform-browser: 4.0.2
@angular/platform-browser-dynamic: 4.0.2
@angular/router: 4.0.2
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.2
@angular/compiler-cli: 4.0.2
$ ng serve
** NG Live Development Server is running on http://localhost:4200 **
Hash: 3ae9f186dbc714358bca
Time: 15372ms
chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 531 kB {4} [initial] [rendered]
chunk {1} main.bundle.js, main.bundle.js.map (main) 108 kB {3} [initial] [rendered]
chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 10.3 kB {4} [initial] [rendered]
chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 4.11 MB [initial] [rendered]
chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
ERROR in Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are not supported. Consider replacing the fu
nction or lambda with a reference to an exported function, resolving symbol NgModule in /Users/matijastepanic/git/inzrak/web/node_modules/angular2-image-gall
ery/node_modules/@angular/core/core.d.ts, resolving symbol Angular2ImageGalleryModule in /Users/matijastepanic/git/inzrak/web/node_modules/angular2-image-gal
lery/angular2imagegallery.module.d.ts, resolving symbol Angular2ImageGalleryModule in /Users/matijastepanic/git/inzrak/web/node_modules/angular2-image-galler
y/angular2imagegallery.module.d.ts
webpack: Failed to compile.
from angular2-image-gallery.
@BenjaminBrandmeier ignore my last comment because when I execute this:
rm -rf node_modules
npm install
Then all errors are gone :D
This module is fantastic Photo Gallery, good job!
from angular2-image-gallery.
@stepanic Thanks for the feedback. :)
I will close this issue.
from angular2-image-gallery.
Related Issues (20)
- Error on :Run convert script" - TypeError: invalid options argument HOT 5
- Real intended dedicated "Viewer" component HOT 4
- Unexpected value 'Angular2ImageGalleryModule' imported by the module 'AppModule'. Please add a @NgModule annotation. HOT 3
- import error HOT 1
- Arrows are in center of the image HOT 1
- data.js not found when the option [galleryName]="'yourGalleryName'" is added to the html HOT 2
- Angular 7 Compatibility HOT 5
- Can't pinch-to-zoom on ImageViewer (mobile) HOT 2
- maxRowsPerPage does not jump to top on page switch HOT 1
- How to integrate gallery in template? HOT 1
- this.render() not showing gallery unless i resize the window HOT 15
- Issue lazy loading module HOT 4
- Cannot find module 'gm' HOT 1
- Feature: overlay buttons with click events as plugins HOT 1
- error when running this:node node_modules/angular2-image-gallery/convert.js HOT 3
- Support for angular 9 HOT 3
- 'gallery' is not a known element HOT 2
- fix some litle boring issues HOT 3
- angular 10 HOT 2
- upgrade to angular 10 error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-image-gallery.