Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'AgmCoreModule' is not exported by node_modules\angular2-google-maps\core\index.js (imported by src\app\app.module.js) #965

Closed
SADHASIVAM-BE opened this issue Mar 29, 2017 · 7 comments

Comments

@SADHASIVAM-BE
Copy link

Issue description
'AgmCoreModule' is not exported by node_modules\angular2-google-maps\core\index.js (imported by src\app\app.module.js). For help fixing this error see https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module

Steps to reproduce and a minimal demo of the problem
development mode its working properly. without any error. But while try to run the AOT mode, above error occurred. Please explain

rollup-config.js

plugins: [
nodeResolve({jsnext: true, module: true}),
commonjs({
include: 'node_modules/rxjs/**',
}),
uglify()
]

@sebholstein
Copy link
Owner

@SADHASIVAM-BE please provide version information. I think this is related to #629

@SADHASIVAM-BE
Copy link
Author

NPM version - 3.10.3
Node version - v6.5.0
angular2-google-maps - ^0.17.0

Below error i received while run AOT.
'AgmCoreModule' is not exported by node_modules\angular2-google-maps\core\index.js (imported by src\app\app.module.js). For help fixing this error see https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
Error: 'AgmCoreModule' is not exported by node_modules\angular2-google-maps\core\index.js (imported by src\app\app.module.js). For help fixing this error see https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
at Module.trace (D:\my-data\node_assignment\angular4\node_modules\rollup\src\Module.js:362:30)
at ModuleScope.findDeclaration (D:\my-data\node_assignment\angular4\node_modules\rollup\src\ast\scopes\ModuleScope.js:47:22)
at MemberExpression.bind (D:\my-data\node_assignment\angular4\node_modules\rollup\src\ast\nodes\MemberExpression.js:26:28)
at D:\my-data\node_assignment\angular4\node_modules\rollup\src\ast\Node.js:6:34
at CallExpression.eachChild (D:\my-data\node_assignment\angular4\node_modules\rollup\src\ast\Node.js:21:5)
at CallExpression.bind (D:\my-data\node_assignment\angular4\node_modules\rollup\src\ast\Node.js:6:8)
at CallExpression.bind (D:\my-data\node_assignment\angular4\node_modules\rollup\src\ast\nodes\CallExpression.js:25:13)
at D:\my-data\node_assignment\angular4\node_modules\rollup\src\ast\Node.js:6:34
at ArrayExpression.eachChild (D:\my-data\node_assignment\angular4\node_modules\rollup\src\ast\Node.js:18:20)
at ArrayExpression.bind (D:\my-data\node_assignment\angular4\node_modules\rollup\src\ast\Node.js:6:8)
Type rollup --help for help, or visit https://github.com/rollup/rollup/wiki

@SADHASIVAM-BE
Copy link
Author

Few more version details.

"rollup": "^0.36.0",
"rollup-plugin-commonjs": "^4.1.0",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-uglify": "^1.0.1",

@morocarlo
Copy link

same issue for me. Have you solved id?

@AbdulAfiq
Copy link

AbdulAfiq commented May 4, 2017

I also face this same issues. It would be a great help for me.
cli

@AbdulAfiq
Copy link

i fix it by inserting in dependencies, found in package.json:
"@agm/core": "1.0.0-beta.0"
npm install

@stale
Copy link

stale bot commented Nov 14, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 14, 2018
@stale stale bot closed this as completed Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants