Skip to main content

Questions tagged [babel-loader]

The tag has no usage guidance.

babel-loader
1 vote
1 answer
33 views

Webpack configuration not working for jsx file with babel lorder

When runing the react project which is configured with webpack and babel loder is giving and error saying unexpected token in jsx files.Please find bellow error snippit ERROR in ./src/index.js 10:12 ...
Tharindu Sandaruwan's user avatar
0 votes
0 answers
21 views

How to Create a React Application with Electron.js and Addons Without Using Webpack?

Could someone help me with this? I'm making an application with Electron.js, React, and addons. I've had problems with the make process as it doesn't recognize the addon's path. After doing some tests,...
Omar Andres Zambrano Arias's user avatar
1 vote
0 answers
64 views

default export - is not a function

I'm currently working in a legacy project that's built using CommonJS. But because I needed to use react-pdf to create PDF files, I had to add .mjs files to my project. This works fine on the dev ...
SaltyPotato's user avatar
0 votes
0 answers
23 views

Error with Gatsby and Babel using decorators

I am using a react app, building the site with Gatsby, Webpack and Babel. Installing a external library, which uses classes decorators syntaxis, I am getting this error during the building: Module ...
Hugo Gómez Tejada's user avatar
0 votes
0 answers
173 views

Mui migration date picker: You may need an additional loader to handle the result of these loaders

I'm migrating this monorepo app from React 16 to React 17 and also MUI 4 to MUI 5. Everything is working just fine, but I just hit a wall when trying to use the MUI 5 date picker. I'm getting this ...
Alejo90's user avatar
  • 21
0 votes
0 answers
29 views

Fail to run a Fastify/ts app bundled by Webpack: "TypeError: Cannot destructure property 'Serializer' of 'dependencies' as it is undefined."

I develop an app with node.js Fastify framework (typescript, ES syntax). I use Webpack to bundle the app and to compile typescript. I want to compile to commonjs to prevent compatibility issues. The ...
Toto's user avatar
  • 43
0 votes
0 answers
41 views

Module build failed (from ./node_modules/babel-loader/lib/index.js) SyntaxError Missing semicolon

app.directive('scroll-bottom', { mounted(el, binding) { let timer: ReturnType<typeof setTimeout> | null = null; let preScrollTop = 0; el.addEventListener('scroll', (...
刘兆峰's user avatar
0 votes
1 answer
90 views

How to use Paged.js in Vue.js2?

let paged = new Previewer(); paged.preview('test', \[\], document.body).then((flow) =\> { console.log("Rendered", flow.total, "pages."); }); Facing issue: 1:1188-1197 export '...
Deepak Walia's user avatar
0 votes
0 answers
197 views

@mediapipe/tasks-vision/vision_bundle.mjs Module parse failed: Unexpected token (30:18) in React.js

Giving compilation error while running how to resolve this ? `Failed to compile. ./node_modules/@mediapipe/tasks-vision/vision_bundle.mjs 30:18 Module parse failed: Unexpected token (30:18) File was ...
Shivraj Khetri's user avatar
0 votes
0 answers
33 views

Speed when using babel plugin in esbuild

If I use the babel plug-in in esbuild, do I use only the babel, not the esbuild? Or do I use the babel only for the parts I need? It's much faster to use the babel plug-in in esbuild than just using ...
이상민's user avatar
1 vote
1 answer
148 views

Babel Loader error when using ffmpeg.wasm in CRA react app

I am trying to implement a video editor using ffmpeg-wasm in CRA react app. Package dependencies : "@ffmpeg/ffmpeg": "^0.12.10", "@ffmpeg/util": "^0.12.1", ...
Sooraj Chandu's user avatar
0 votes
0 answers
48 views

Runtime error by `babel/runtime-corejs3` importing `core-js-pure`

I have an issue related to the package @babel/runtime-corejs3 importing core-js-pure in my Vue application. My browser console throws the following error: Uncaught SyntaxError: The requested module '/@...
Acework's user avatar
  • 63
0 votes
0 answers
26 views

Rollup : Uncaught TypeError: Cannot destructure property 'class' of 'object null' as it is null

I am trying to create a hyperapp application with Rollup. The hyperapp syntax should be written in JSX. So we need compiler to transform JSX into native hyperapp h function calls. The bundle is ...
Diana K.'s user avatar
0 votes
0 answers
77 views

Module not found: Error: Can't resolve in Webpack

I am using k6-typescript-template to load test a web application. So it basically uses babel-loader and webpack to convert typescript to javascript as k6 doesn't support typescript. I am receiving the ...
sai vignesh's user avatar
0 votes
1 answer
32 views

Babel cannot parse @wordpress packages

When I try to use @wordpress/api-fetch, I am getting following errors when compiling: ERROR in ./node_modules/@wordpress/hooks/build-module/createCurrentHook.js 15:90 Module parse failed: Unexpected ...
Tahi Reu's user avatar
  • 580

15 30 50 per page
1
2 3 4 5
49