question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lots of Warnings in RC5

See original GitHub issue

Hi - I am getting lots of warnings such as the ones attached below.

I am using Angular 2 RC5 using Node 4.5.0 and NPM 3.10.6

I installed the library using: sudo npm i ng2-responsive --save

As soon as i use the library in my AppModule i start getting warning.

...
import { ResponsiveModule } from 'ng2-responsive';
...
@NgModule({
  declarations: [ AppComponent ],
  imports: [
    BrowserModule,
    CommonModule,
    FormsModule,
    routing,
    ResponsiveModule
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

These are some of the warnings:

WARNING in ./~/ng2-responsive/index.js
Cannot find SourceMap 'index.js.map': Error: Can't resolve './index.js.map' in '/project/node_modules/ng2-responsive'
 @ ./src/app/app.module.ts 18:0-50
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main

WARNING in ./~/ng2-responsive/config/config.js
Cannot find SourceMap 'config.js.map': Error: Can't resolve './config.js.map' in '/project/node_modules/ng2-responsive/config'
 @ ./~/ng2-responsive/index.js 34:15-41 43:15-41
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main

WARNING in ./~/ng2-responsive/bootstrap/bootstrap-directives.js
Cannot find SourceMap 'bootstrap-directives.js.map': Error: Can't resolve './bootstrap-directives.js.map' in '/project/node_modules/ng2-responsive/bootstrap'
 @ ./~/ng2-responsive/index.js 35:29-72
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main

WARNING in ./~/ng2-responsive/devices/devices-directives.js
Cannot find SourceMap 'devices-directives.js.map': Error: Can't resolve './devices-directives.js.map' in '/project/node_modules/ng2-responsive/devices'
 @ ./~/ng2-responsive/index.js 36:27-66
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main

WARNING in ./~/ng2-responsive/custom-sizes/custom-sizes-directives.js
Cannot find SourceMap 'custom-sizes-directives.js.map': Error: Can't resolve './custom-sizes-directives.js.map' in '/project/node_modules/ng2-responsive/custom-sizes'
 @ ./~/ng2-responsive/index.js 37:32-81
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main
...

P.S: I am using Angular-cli @ webpack

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hassanasadcommented, Sep 3, 2016

Okay i found a way to get rid of these warnings.

In each file which is giving warning - “remove” these last lines: //# sourceMappingURL=config.js.map

I believe the warnings are simply coming because sourceMappingURL is pointing to a file that doesn’t exist. For example, i dont have any file config.js.map in my config folder. Same is the case with all the .map files. When i install it using npm install ng2-responsive i dont get them.

1reaction
hassanasadcommented, Aug 31, 2016

I have updated the package to version v0.4.2 and unfortunately it doesn’t fix the warnings 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

[RC5] Using FormModule gives an "old forms module" warning
In RC4, I had to use a disableDeprecatedForms() method, but it has now disappeared in RC5. Still, I get this warning message complaining...
Read more >
WARNING: Network data corruption on RC5 - Google Groups
There are evidences of network data corruption on RC5. One such evidence is the empty Status page, but data corruption might occur while...
Read more >
2.6.19-rc5-mm2: warnings in MODPOST and later
yes, lots of new section mismatch warnings. > > A large number of them are due to the paravirt patches: > > WARNING:...
Read more >
[PATCH 0/7] trivial: fix some compilation warnings for 2.6.32-rc5 ...
Felipe Contreras (7): usb: trivial cleanups ipc: fix trivial warning crypto: testmgr: fix warning acpi: processor: fix section mismatch acpi: fix a bunch...
Read more >
Copter - 3.4-rc5 Possible IMU or Compass Issues?
... for an entire battery, no compass variance or other warnings during… ... that's the case, there's a lot of new EKF related...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found