Conflict with "import "./libs/shim/urijs.js";"

Postman Script.

When importing the “./libs/shim/urijs.js”; I get the following Error.

but when I don’t import “./libs/shim/urijs.js”; then i get this error.

How can I resolve this issue? Help needed.

Thank you.


I’m unable to make the tool break the way you describe. Would you be able to provide a redacted repro?

One thing I notice is that you’re trying to webpack the postman-to-k6 output. I don’t really know if the two tools are compatible. Based on the error you’re getting, I’m guessing it has to do with how urijs.js is using the CommonJS module format, while webpack in this case seems to be expecting an ecmascript module.