Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

324
Views
Webpack can't resolve data:text import

My app uses a third party library that has the syntax:

const module = await import(`data:text/javascript;charset=utf-8,${content}`);

While building through Webpack I am getting the following error:

ERROR in ./node_modules/@web/test-runner-commands/browser/commands.mjs
Module not found: Error: Can't resolve 'data:text' in 'C:\path_to_project\node_modules\@web\test-runner-commands\browser'

I tried using babel-loader in my Webpack config:

module: {
    rules: [
        {
            test: /\.m?js$/,
            include: [
                path.resolve(workingDirectory, 'node_modules/@web')
            ],
            use: 'babel-loader'
        }
    ]
}

I need help figuring out what loader would be able to interpret the expression.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!