Skip to content

Display a note about the breaking change when forgot the -loader prefix - #3289

Merged
sokra merged 1 commit into
masterfrom
feature/nice-error
Nov 15, 2016
Merged

sokra merged 1 commit into
masterfrom
feature/nice-error

Conversation

@sokra

@sokra sokra commented Nov 14, 2016

Copy link
Copy Markdown
Member

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • Bugfix
  • Feature

What is the current behavior? (You can also link to an open issue here)

require("any!./file");
(webpack)/test/cases/resolving/issue-2986/index.js
Module not found: Error: Can't resolve 'any' in '...'

What is the new behavior?

(webpack)/test/cases/resolving/issue-2986/index.js
Module not found: Error: Can't resolve 'any' in '...'
BREAKING CHANGE: It's no longer allowed to omit the '-loader' prefix when using loaders.
                 You need to specify 'any-loader' instead of 'any'.

Does this PR introduce a breaking change?

  • Yes
  • No

Related to #2986

@TheLarkInn TheLarkInn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for getting this in so quickly. Looks good to me pending tests.

@sokra
sokra merged commit 5ad8f76 into master Nov 15, 2016
@sokra
sokra deleted the feature/nice-error branch November 15, 2016 08:15
@kdekooter

Copy link
Copy Markdown

Sorry folks but shouldn't is say "suffix"?

@sokra

sokra commented Nov 25, 2016

Copy link
Copy Markdown
Member Author

yep, it should. Do you want to send a PR?

@kdekooter

Copy link
Copy Markdown

I'd be happy to send a PR, but I see it was already fixed in commit 0f69d67.

@macfarmw

Copy link
Copy Markdown

Excellent work! I ran across this feature today while upgrading. I am accustomed to the normal time wasting gibberish that passes for error reporting in many projects so this new standard is very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants