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 failed: Unexpected character '#' (7:2) File was processed with these loaders: #14

Open
mamedbekovruslan opened this issue Dec 5, 2023 · 1 comment

Comments

@mamedbekovruslan
Copy link

Has anyone encountered something like this?

Background: About a week ago, the (React) project was working fine and everything was normal.

Around the same time, I started working on a new project, but this time using React Native. Both projects are on the same working machine but naturally in different folders. During the initial setup of the React Native project, I had to deal with a bunch of errors, and apparently, in one of those error resolutions, I either updated a package (probably unnecessarily) or installed a new one.

I returned to the old project only a couple of days later and found this error. Therefore, I can't determine what exactly broke it.

I tried npm clean cache + delete node_modules + delete package-lock.json, but it didn't help.

Rolling back to an old commit also didn't resolve the issues (even going back 5 commits).

The project was originally built using CRA (Create React App). There are no files such as .babelrc, babel.config.js, webpack.config.js.

Failed to compile.

./node_modules/ml-matrix/src/symmetricMatrix.js 7:2
Module parse failed: Unexpected character '#' (7:2)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| export class SymmetricMatrix extends AbstractMatrix {
|   /** @type {Matrix} */
>   #matrix;
|   get size() {
|     return this.#matrix.size;

Tryed to use @babel/preset-env, but its doesnt work Remove node-modules + package-lock.json + npm clean cache - doesnt work Also i tryed prev commit, same - just doesnt work

@Tr0y4n
Copy link

Tr0y4n commented Jun 20, 2024

Hey, i think youre just not good at programming, if you cant deal with this little error by yourself. Just delete your gitHub and go work at the construction site or something

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