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

598
Views
Angular and webpack 4.44.2 error Can't import the named export 'URL' from non EcmaScript module (only default export is available)

I working with Angualar 11 project using webpack. The project running on OpenShift. It uses webpack 4.44.2 version, node 12 version. The project suddenly on build phase throw an error

[2021-09-21T14:59:36.679Z] Can't import the named export 'URL' from non EcmaScript module (only default export is available)

My webpack config file is:

const path = require("path");

const { NODE_ENV = "production" } = process.env;

module.exports = {
  entry: "./server",
  mode: NODE_ENV,
  target: "node",
  output: {
    path: path.resolve(__dirname, "dist"),
    filename: "server.js",
  },
  resolve: {
    extensions: [".ts", ".js"],
  },
};

in my package.json file the build command is :

"build:server": "webpack --config=./webpack-server.config.js"
over 4 years ago · Santiago Trujillo
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!