Skip to content

Invalid resource URL #20968

Closed
Closed
@janousek

Description

@janousek

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes.

Description

Resource URL generated by WebpackResourceLoader is invalid. It is caused by this line:

const entry = data ? `angular-resource:${resourceType},${hash}` : filePath;

It should looks like this:

const entry = data ? `angular-resource://${resourceType},${hash}` : filePath; 

This is regression caused by this change:
8e741e1#diff-8f746eb1f9444d4c0e52eea0175d6a080fd8f7c38b8c8056e5abba89de3337c4

For me, this bug currently causes this error during i18n extraction:

angular-resource:style,13704965354860b52a891d7d35de9bb3:1:0 - Error: Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions