Questions tagged [esmodules]

57 questions
0
votes
1 answer

What is [ERR_PACKAGE_PATH_NOT_EXPORTED] exactly referring to in this case?

I am trying to serve the following http_server.js files on my virtual machine that I have set it up on digitalocean. Why am I getting this error message? this is my http_server.js file: // Import required modules import express from…
Sar
  • 1
0
votes
0 answers

Is there any way to get Jest to handle importing libraries with esmodules?

Historically I've just used the transformIgnorePatterns option in Jest to convert esmodule libraries from esmodules to commonjs: module.exports = { transformIgnorePatterns: [ '/node_modules/(?!my-library)' ] } However this…
craigmiller160
  • 5,751
  • 9
  • 41
  • 75
0
votes
0 answers

failed to load resources or couldn't find the module. importing images in vuejs component

I'm trying to import my images, but i get couldn't find module or failed to load resources. I've used the require function, but it doesn't work too! `