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

Babel loader #562

Closed
ChumaA opened this issue Oct 26, 2022 · 1 comment
Closed

Babel loader #562

ChumaA opened this issue Oct 26, 2022 · 1 comment

Comments

@ChumaA
Copy link

ChumaA commented Oct 26, 2022

I am seeing this babel loader error and wondering if someone here could give me some pointers on how I can fix it?

../node_modules/file-type/core.js 763:33
Module parse failed: Identifier directly after number (763:33)
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.
|           const element = await readElement();
| 
>           if (element.id === 0x42_82) {
|             const rawValue = await tokenizer.readToken(new Token.StringType(element.len, 'utf-8'));
|             return rawValue.replace(/\00.*$/g, ''); // Return DocType

I am using "file-type": "^17.1.2" and "@babel/core": "^7.0.0", in my package.json file.

Thank you in advance!

@sindresorhus
Copy link
Owner

This is not the place to ask Babel questions. The problem is that your Babel thing doesn't support numeric separator syntax.

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2022
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