Comments (6)
@JoaoSaleiro não sei se já resolveu o problema?! Mas por acaso estava tentando importar o 'node_modules/ng2-toasty/bundles/index.umd.js' em angular-cli.json? Eu estava fazendo isso e estava com o mesmo problema, não é necessário importar esse arquivo em lugar nenhum e tudo vai funcionar normalmente.
from ng2-toasty.
Hi @JoaoSaleiro
I have updated the ng2-toasty
to version 2.4.0 (migration to Angular 2.4.7). Can you please use the latest version and check is that issue still exists?
from ng2-toasty.
Hello @akserg .
I've updated today ng2-toasty to 2.4.0, among other libraries, and unfortunately the error persists:
Uncaught TypeError: Cannot read property 'Injectable' of undefined at eval (eval at webpackJsonp.100.module.exports (addScript.js:9), <anonymous>:118:74) at Object.module.exports (eval at webpackJsonp.100.module.exports (addScript.js:9), <anonymous>:122:2) at __webpack_require__ (eval at webpackJsonp.100.module.exports (addScript.js:9), <anonymous>:30:30) at Object.eval (eval at webpackJsonp.100.module.exports (addScript.js:9), <anonymous>:624:78) at __webpack_require__ (eval at webpackJsonp.100.module.exports (addScript.js:9), <anonymous>:30:30) at eval (eval at webpackJsonp.100.module.exports (addScript.js:9), <anonymous>:76:18) at eval (eval at webpackJsonp.100.module.exports (addScript.js:9), <anonymous>:79:10) at webpackUniversalModuleDefinition (eval at webpackJsonp.100.module.exports (addScript.js:9), <anonymous>:9:24) at eval (eval at webpackJsonp.100.module.exports (addScript.js:9), <anonymous>:10:3) at eval (<anonymous>) at webpackJsonp.100.module.exports (addScript.js:9) at Object.906 (index.umd.js?da21:1) at __webpack_require__ (bootstrap 20ca24c…:52) at Object.1480 (scripts.bundle.js:94) at __webpack_require__ (bootstrap 20ca24c…:52)
My package.json, now:
"name": "clinica-doutorfinancas-pt",
"version": "10.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "ng serve",
"test": "ng test",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "protractor"
},
"private": true,
"dependencies": {
"@angular/common": "^2.4.7",
"@angular/compiler": "^2.4.7",
"@angular/core": "^2.4.7",
"@angular/forms": "^2.4.7",
"@angular/http": "^2.4.7",
"@angular/platform-browser": "^2.4.7",
"@angular/platform-browser-dynamic": "^2.4.7",
"@angular/router": "^3.4.7",
"@swimlane/ngx-datatable": "6.1.2",
"angular2-jwt": "^0.1.25",
"animate.css": "^3.5.2",
"bootstrap-sass": "^3.3.7",
"core-js": "^2.4.1",
"font-awesome": "^4.7.0",
"ng2-bootstrap": "1.3.3",
"ng2-charts": "^1.4.1",
"ng2-select": "^1.1.2",
"ng2-toasty": "^2.4.0",
"ngx-uploader": "2.1.6",
"rxjs": "^5.1.1",
"tinymce": "^4.5.2",
"ts-helpers": "^1.1.1",
"zone.js": "0.7.7",
"ng-click-outside": "^2.0.2"
},
"devDependencies": {
"@angular/cli": "^1.0.0-beta.31",
"@angular/compiler-cli": "^2.4.7",
"@types/jasmine": "2.5.43",
"@types/node": "^7.0.5",
"codelyzer": "~2.0.0-beta.2",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "3.2.0",
"karma": "1.4.1",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.6.0",
"protractor": "~5.1.1",
"ts-node": "2.1.0",
"tslint": "^4.3.1",
"typescript": "2.1.6"
}
}
Do you want me to do any test to identify the problem?
from ng2-toasty.
Let me check on my side first.
from ng2-toasty.
Thanks @YuriFontella. This was the solution for me, I was also accidentally importing the umd bundle in .angular-cli.json
from ng2-toasty.
I was also accidentally importing the umd bundle in .angular-cli.json
what You mean? I still have the same error :/
from ng2-toasty.
Related Issues (20)
- Support Angular 6: Do you have plan support Angular 6? HOT 2
- update for angular 7? HOT 1
- feature request: onClick event with option to close the message box HOT 2
- Styles don't work HOT 7
- How to add my theme to toasty??
- Is it competible with angular4? HOT 3
- how can I activate the countdown function?
- Error: unexpected Token: /* HOT 2
- angular 4 server side prerending in CustomErrorHandler HOT 1
- Use of ng-packagr
- timeout not working HOT 1
- Translate integration HOT 2
- Style does not work in ErrorHandler HOT 4
- How do I call the service inside another service. HOT 1
- Add support for Angular 5. HOT 8
- Allow custom toast types
- Where are the styles? HOT 1
- do you support angular 5? HOT 1
- Text is overlapping with close button
- RxJs 6 Support HOT 5
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 ng2-toasty.