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
projekt/ng2-responsive 404 error #32
Comments
It's great, thanks. I have always tried the library with the demo and webpack project. I'll add an example configuration with Systemjs. Thanks, p5hema2. |
Is there an example configuration with SystemJS? I do not see a systemjs.config.js file anywhere. I am getting the same 404's due to the assumed file paths in ngr-responsive/index.js. For example, I believe this: Should be: |
I have the exact same configuration as the original post but I get a lot of 404s. Has something changed since then? |
Unfortunately I'm having the same problem as @lax20attack and @PickleyD. |
@well-made you can try declare every path explicitely in your systemjs.config.js : (function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within the app folder
app: 'app',
//..
// other libraries
'ng2-responsive/bootstrap': 'npm:ng2-responsive/bootstrap',
'ng2-responsive/browsers': 'npm:ng2-responsive/browsers',
'ng2-responsive/config': 'npm:ng2-responsive/config',
'ng2-responsive/custom-sizes': 'npm:ng2-responsive/custom-sizes',
'ng2-responsive/devices': 'npm:ng2-responsive/devices',
'ng2-responsive/pixelratio': 'npm:ng2-responsive/pixelratio',
'ng2-responsive/responsive': 'npm:ng2-responsive/responsive',
'ng2-responsive/responsive-window': 'npm:ng2-responsive/responsive-window',
'ng2-responsive/useragent': 'npm:ng2-responsive/useragent',
'ng2-responsive': 'npm:ng2-responsive'
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
app: {
main: './main.js',
defaultExtension: 'js'
},
//..........
'ng2-responsive/bootstrap': {
main: './index.js',
defaultExtension: 'js'
},
'ng2-responsive/browsers': {
main: './index.js',
defaultExtension: 'js'
},
'ng2-responsive/config': {
main: './index.js',
defaultExtension: 'js'
},
'ng2-responsive/custom-sizes': {
main: './index.js',
defaultExtension: 'js'
},
'ng2-responsive/devices': {
main: './index.js',
defaultExtension: 'js'
},
'ng2-responsive/pixelratio': {
main: './index.js',
defaultExtension: 'js'
},
'ng2-responsive/responsive': {
main: './index.js',
defaultExtension: 'js'
},
'ng2-responsive/responsive-window': {
main: './index.js',
defaultExtension: 'js'
},
'ng2-responsive/useragent': {
main: './index.js',
defaultExtension: 'js'
},
'ng2-responsive': {
main: './index.js',
defaultExtension: 'js'
}
}
});
})(this); |
Ok! Let me see. ; ) |
@renooo thats a possibility but should be necessary of course :) |
Update to "ng2-responsive": "^0.6.7". Thanks! |
Your install guide didn't work in the first place with ng2-Final, typescript 2.0.2 for the Angular Get Started App.
I resolved the issue with adding
'responsive': 'npm:ng2-responsive',
and
'ng2-responsive': { main: './index.js', defaultExtension: 'js' }
to system.config.js.
app.module.ts
system.config.js
The text was updated successfully, but these errors were encountered: