Comments (12)
does that also happen when running npm run serve
?
from angular-rollup-starter.
I want to use "angular2-cookie 1.2.4" in this project.
when I use: "npm run serve"
I have an Compile error :
Compile error: Error: 'CookieService' is not exported by node_modules\angular2-cookie\services\cookies.service.js
from angular-rollup-starter.
@nedhsieh I think for that specific example the best way would be to import it like
import { CookieService } from 'angular2-cookie/src/cookies.service'
from angular-rollup-starter.
@jkuri thinks response. it's work on "angular2-cookie 1.2.4".
but when i use "angular2-jwt 0.1.24", have a same error.
and i mandatory point to "angular2-jwt.ts", have another err:
'Base64' is not exported by node_modules\js-base64\base64.js
from angular-rollup-starter.
I'm getting these errors when npm run roll & npm run roll:prerender
▁ Building...✖ Compile error: Error: Error encountered resolving symbol values statically. Could not resolve events relative to /Users/ljeff/git_repo/sandbox/angular/angular-rollup-starter/node_modules/@types/chokidar/index.d.ts., resolving symbol FSWatcher in /Users/ljeff/git_repo/sandbox/angular/angular-rollup-starter/node_modules/@types/chokidar/index.d.ts
And will you be upgrading this to angular 4?
from angular-rollup-starter.
hi, just remove @types/chokidar and it should work
from angular-rollup-starter.
removing @types/chokida and/or "chokidar": "^1.6.1",
▁ Building...✖ Compile error: Error: Error at /Users/ljeff/git_repo/sandbox/angular/angular-rollup-starter/node_modules/@types/browser-sync/index.d.ts:6:1: Cannot find type definition file for 'chokidar'.
Error at /Users/ljeff/git_repo/sandbox/angular/angular-rollup-starter/node_modules/@types/lodash/index.d.ts:12898:29: Cannot find name 'object'.
Error at /Users/ljeff/git_repo/sandbox/angular/angular-rollup-starter/node_modules/@types/lodash/index.d.ts:19638:15: All declarations of 'WeakMap' must have identical type parameters.
Error at /Users/ljeff/git_repo/sandbox/angular/angular-rollup-starter/node_modules/@types/lodash/index.d.ts:19638:33: Cannot find name 'object'.
from angular-rollup-starter.
it works for me with a fresh npm install
.
from angular-rollup-starter.
hmm. I have done that several times. Same errors. I think this will work great with my next project if I can get it running with Angular 4. Can you help me get it set up?
from angular-rollup-starter.
oh you are running with Angular 4... sorry never tried that. I personally switch to @ngtools/webpack while ago, recommend you to do so too. there was a time when rollup was faster but that does not stands true at this point.
if you are looking for Angular 4 Universal seed, feel free to check this out: https://github.com/bleenco/angular-webpack-seed.
from angular-rollup-starter.
Thanks @jkur, I'm looking at https://github.com/bleenco/angular-webpack-seed, I ran npm run build:prod, can you explains what 0.app.bundle.js, 0.server.js & server.js are for since the app will run with just app.bundle.js?
from angular-rollup-starter.
its the sample lazy route.
from angular-rollup-starter.
Related Issues (10)
- spawn npm ENOENT HOT 19
- Angular Material & npm run roll:prerender HOT 7
- How to include rxjs map operator in vendor.ts ? HOT 4
- Karma tests not working HOT 4
- Error headling HOT 4
- How to include 3rd party libs HOT 2
- [Feature] Istanbul
- How to use .scss syntax, and also compile scss in components? HOT 7
- How do we setup universal for dynamic routes like event/dynamiceventid ?
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 angular-rollup-starter.