Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

v1.2.6 Does not work with Rollup.js #52

Open
lfarran opened this issue Mar 27, 2017 · 1 comment
Open

v1.2.6 Does not work with Rollup.js #52

lfarran opened this issue Mar 27, 2017 · 1 comment

Comments

@lfarran
Copy link

lfarran commented Mar 27, 2017

With Angular 4.0.0 rollup AOT builds:

{ Error: 'CookieService' is not exported by node_modules/angular2-cookie/core.js
at error (node_modules/rollup/src/utils/error.js:2:14)
at Module.error$1 [as error] (/node_modules/rollup/src/Module.js:303:2)
at Module.trace (/node_modules/rollup/src/Module.js:400:10)
at ModuleScope.findDeclaration (/node_modules/rollup/src/ast/scopes/ModuleScope.js:52:22)
at Identifier.bind (/node_modules/rollup/src/ast/nodes/Identifier.js:22:29)
at /node_modules/rollup/src/ast/Node.js:6:34
at ArrayExpression.eachChild (/node_modules/rollup/src/ast/Node.js:18:20)
at ArrayExpression.bind (/node_modules/rollup/src/ast/Node.js:6:8)
at /node_modules/rollup/src/ast/Node.js:6:34
at Node.eachChild (/node_modules/rollup/src/ast/Node.js:21:5)
code: 'MISSING_EXPORT',
url: 'https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module',
pos: 781,
loc:

@lfarran
Copy link
Author

lfarran commented Mar 27, 2017

Work around:
Change:
import { CookieService } from 'angular2-cookie/core';

To:
import { CookieService } from 'angular2-cookie/services';

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant