Skip to content

Cannot find source file warnings #18

Closed
@kennethkoontz

Description

@kennethkoontz

Not sure if this is the correct place to report this issue but when adding new node packages, sometimes I get errors as such:

WARNING in ./~/ng2-modal/index.js
Cannot find source file '../../../src/index.ts': Error: Cannot resolve 'file' or 'directory' ../../../src/index.ts in /Users/kenneth/Projects/benchmark/web-client/node_modules/ng2-modal

Adding the following exclude entry to my webpack configuration suppresses the warning:

      {
        test: /\.js$/,
        loader: 'source-map-loader',
        exclude: [
          helpers.root('node_modules/ng2-modal')
        ]
      }

What can I do to resolve this without excluding to suppress the warning?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions