Skip to content

Not able to compile langneg #579

@mariusrak

Description

@mariusrak

As I'm trying to compile langneg 0.6.0 with webpack 5.64.1 I'm getting this errors:

  ERROR in ./node_modules/@fluent/langneg/esm/index.js 9:0-59
  Module not found: Error: Can't resolve './negotiate_languages' in '...\node_modules\@fluent\langneg\esm'
  Did you mean 'negotiate_languages.js'?
  BREAKING CHANGE: The request './negotiate_languages' failed to resolve only because it was resolved as fully specified
  (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
  The extension in the request is mandatory for it to be fully specified.
  Add the extension to the request.
   @ ./Application/IntlModule.js 8:0-53
   @ ./ndex.js 25:16-59 26:7-42

  ERROR in ./node_modules/@fluent/langneg/esm/index.js 10:0-57
  Module not found: Error: Can't resolve './accepted_languages' in '...\node_modules\@fluent\langneg\esm'
  Did you mean 'accepted_languages.js'?
  BREAKING CHANGE: The request './accepted_languages' failed to resolve only because it was resolved as fully specified
  (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
  The extension in the request is mandatory for it to be fully specified.
  Add the extension to the request.
   @ ./Application/IntlModule.js 8:0-53
   @ ./index.js 25:16-59 26:7-42

  ERROR in ./node_modules/@fluent/langneg/esm/index.js 11:0-42
  Module not found: Error: Can't resolve './matches' in '...\node_modules\@fluent\langneg\esm'
  Did you mean 'matches.js'?
  BREAKING CHANGE: The request './matches' failed to resolve only because it was resolved as fully specified
  (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
  The extension in the request is mandatory for it to be fully specified.
  Add the extension to the request.
   @ ./Application/IntlModule.js 8:0-53
   @ ./index.js 25:16-59 26:7-42

I tried to downgrade to 0.5.2 but I'm getting different error there, so it's not worth it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy