Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Module parse failed: Unexpected token (105:45); 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" #153

Open
SciManJD opened this issue Sep 29, 2024 · 1 comment

Comments

@SciManJD
Copy link

I cannot make it running. I get this message:

Module parse failed: Unexpected token (105:45)
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
|   for (const d of l.getElementsByTagName("span")) {
|     let U = d.textContent;
>     const Z = JSON.parse(d.dataset.l10nArgs ?? "{}");
|     if (U)
|       for (const F in Z)

I need a little help, please...

@TaTo30
Copy link
Owner

TaTo30 commented Oct 1, 2024

The problem is the ?? operator even if is a feature supported by many browsers some transpiler does not supported it, if You are using webpack 4 try to update to webpack 5 or change the "target" property to "esnext". webpack/webpack#10227

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

No branches or pull requests

2 participants