Coder Social home page Coder Social logo

Comments (12)

jkuri avatar jkuri commented on September 27, 2024

does that also happen when running npm run serve?

from angular-rollup-starter.

nedhsieh avatar nedhsieh commented on September 27, 2024

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.

jkuri avatar jkuri commented on September 27, 2024

@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.

nedhsieh avatar nedhsieh commented on September 27, 2024

@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.

playground avatar playground commented on September 27, 2024

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.

jkuri avatar jkuri commented on September 27, 2024

hi, just remove @types/chokidar and it should work

from angular-rollup-starter.

playground avatar playground commented on September 27, 2024

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.

jkuri avatar jkuri commented on September 27, 2024

it works for me with a fresh npm install.

from angular-rollup-starter.

playground avatar playground commented on September 27, 2024

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.

jkuri avatar jkuri commented on September 27, 2024

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.

playground avatar playground commented on September 27, 2024

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.

jkuri avatar jkuri commented on September 27, 2024

its the sample lazy route.

from angular-rollup-starter.

Related Issues (10)

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.