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

Module parse Error Typescript - Appropriate loader #115

Open
lsprung-tgm opened this issue Aug 30, 2023 · 0 comments
Open

Module parse Error Typescript - Appropriate loader #115

lsprung-tgm opened this issue Aug 30, 2023 · 0 comments
Labels
explain (Label used internally)

Comments

@lsprung-tgm
Copy link

Hi, in my angular project I am unable to load 4 instances. I believe thats because of operations like ?? or ||.

This is one of the Errors:

ERROR in ./node_modules/@material/material-color-utilities/utils/theme_utils.js 101:27
Module parse failed: Unexpected token (101:27)
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
_

| export function applyTheme(theme, options) {
> const target = options?.target || document.body;
| const isDark = options?.dark ?? false;
| const scheme = isDark ? theme.schemes.dark : theme.schemes.light;

Does anybody know how to configure a loader for a specific file?

@pennzht pennzht added the explain (Label used internally) label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
explain (Label used internally)
Projects
None yet
Development

No branches or pull requests

2 participants