Module not found
See original GitHub issueAfter running ‘npm install ng2-restangular’
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { RestangularModule } from 'ng2-restangular';
@NgModule({
imports: [ BrowserModule,
RestangularModule.forRoot((RestangularProvider) => {
RestangularProvider.setBaseUrl('http://localhost:3011/api');
RestangularProvider.setDefaultHeaders({'Authorization': 'Bearer UDXPx-Xko0w4BRKajozCVy20X11MRZs1'});
}
) ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
and adding it in the app.module.ts, I got:
localhost/:23 Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/ng2-restangular(…)
I’m new to Angular2 and can’t find why. Any clue?
Issue Analytics
- State:
- Created 7 years ago
- Comments:13
Top Results From Across the Web
module-not-found - Next.js
The module you're trying to import is not installed in your dependencies · The module you're trying to import is in a different...
Read more >javascript - Module not found can't resolve - Stack Overflow
app/index.js Module not found: Error: Can't resolve './app/test.js'. I've tried changing the file path to a relative one with no luck and ...
Read more >Have a JavaScript Module Not Found Error ... - Airbrake Blog
Most likely, the reason you're seeing a “module not found” error message within your JavaScript code will be something simple, like putting an ......
Read more >How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Basically, just change 'react-scripts' to 4.0.2 in your package.json and run `npm install` again :D Follow me on Twitter: ...
Read more >How to Fix ModuleNotFoundError and ImportError
path . Recall that when you call import a if the module's name was found neither in sys.modules nor in standard library, Python...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You need to add
transpiler: 'typescript'
to config obj, and'typescript': 'npm:typescript/lib/typescript.js'
to ‘map’. Also install typescript if it not installed. Here the system.config.js file.We have live demo on plunker with SystemJS. Here you can check how it works Demo
Most likely you have problems in your SystemJS configs.