-
Notifications
You must be signed in to change notification settings - Fork 71
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
Error: 'ResponsiveModule' is not exported by node_modules/ng2-responsive/index.js #54
Comments
Update to "ng2-responsive": "^0.6.7". Set this config in your systemjs file:
Tell me if that works! ; ) |
Hello Manuel, It works!!!!! Thanks for all the work. Really appreciate it!! Bart |
After adding this I get the following error:
|
even after further debugging doesn't work..removing these lines and systemjs works again, so it must be something with ng2-responsive |
I was able to get past the zone error by modifying the systemjs config file from this
to this
since you use require('rxjs') (you are not requiring subcomponents in a way this is typically done when starting from angular 2 quickstart templates) but I'm now faced with error
Probably because the module also contains directives and those should be entered into declarations section. |
Ok, apparently in only works if you import the ng2-responsive module within the root app.module but not in other modules, don't know why. HTH |
After leaving the project for a couple of months, I found that I had the same problem. The solution suggested by brgrz does work with my project (Thanks brgrz!). |
Well, for me the directives are not working correctly. I was able to import ng2-responsive and have it load without errors but when I appliy the directives to HTML tags those elements do not get rendered at all (no matter the breakpoints/orientiations/etc.) |
I would really like to use the ResponsiveModule in my Angular2 project but I can't get it to run.
If I run the project on my local server it will not pass the 'Loading' message without any helping error messages in the console.
But when I run my release script I see this:
Export 'ResponsiveConfig' is not defined by '/Users/Bart/Documents/www/pegasus-ceRegistrar/bin-debug/aot/src/application/ApplicationModule.ngfactory.js'
Export 'ResponsiveConfigInterface' is not defined by '/Users/Bart/Documents/www/pegasus-ceRegistrar/bin-debug/aot/src/application/ApplicationModule.ngfactory.js'
Export 'ResponsiveState' is not defined by '/Users/Bart/Documents/www/pegasus-ceRegistrar/bin-debug/aot/src/application/ApplicationModule.ngfactory.js'
Export 'ResponsiveModule' is not defined by '/Users/Bart/Documents/www/pegasus-ceRegistrar/bin-debug/aot/src/application/ApplicationModule.ngfactory.js'
Export 'ResponsiveModule' is not defined by '/Users/Bart/Documents/www/pegasus-ceRegistrar/bin-debug/aot/src/application/ApplicationModule.ngfactory.js'
Export 'ResponsiveConfig' is not defined by '/Users/Bart/Documents/www/pegasus-ceRegistrar/bin-debug/aot/src/application/ApplicationModule.ngfactory.js'
Export 'ResponsiveState' is not defined by '/Users/Bart/Documents/www/pegasus-ceRegistrar/bin-debug/aot/src/application/ApplicationModule.ngfactory.js'
'ResponsiveModule' is not exported by node_modules/ng2-responsive/index.js (imported by bin-debug/src/application/ApplicationModule.js). For help fixing this error see https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
Error: 'ResponsiveModule' is not exported by node_modules/ng2-responsive/index.js (imported by bin-debug/src/application/ApplicationModule.js). For help fixing this error see https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
I've tried the solutions mentioned in issue #32 'projekt/ng2-responsive 404 error' but it's not working :-(
Could you please tell me what I'm doing wrong?
Below you can see my project config files.
package.json
{
"name": "pegasus-ceRegistrar",
"version": "0.0.1",
"dependencies": {
"@angular/common": "^2.4.1",
"@angular/compiler": "^2.4.1",
"@angular/compiler-cli": "^2.4.1",
"@angular/core": "^2.4.1",
"@angular/forms": "^2.4.1",
"@angular/http": "^2.4.1",
"@angular/material": "^2.0.0-beta.1",
"@angular/platform-browser": "^2.4.1",
"@angular/platform-browser-dynamic": "^2.4.1",
"@angular/platform-server": "^2.4.1",
"@angular/router": "^3.4.1",
"@angular/upgrade": "^2.4.1",
"@types/core-js": "^0.9",
"@types/hammerjs": "^2.0.34",
"@types/node": "^6.0.54",
"angular-in-memory-web-api": "^0.1",
"angular2-jwt": "^0.1.25",
"concurrently": "^3.0.0",
"core-js": "^2",
"grunt": "^1",
"grunt-contrib-clean": "^1",
"grunt-contrib-copy": "^1",
"grunt-shell": "^2",
"hammerjs": "^2.0.8",
"lite-server": "^2",
"load-grunt-tasks": "^3",
"ng2-responsive": "^0.6.6",
"reflect-metadata": "^0.1.9",
"rollup": "^0.36",
"rollup-plugin-commonjs": "^5",
"rollup-plugin-node-resolve": "^2",
"rollup-plugin-uglify": "^1",
"rxjs": "^5.0.2",
"systemjs": "^0.19",
"tslint": "^4.2.0",
"typescript": "2.0.10",
"zone.js": "^0.7.4"
}
}
systemjs.config.js
(function (global) {
System.config({
paths: {
'npm:': 'node_modules/'
},
map: {
Application: 'bin-debug',
});
})(this);
The text was updated successfully, but these errors were encountered: