Getting module is not defined

Created on 20 March 2025, 16 days ago

Problem/Motivation

When enabled the file https://unpkg.com/@ungap/url-search-params@0.2.2/min.js is throwing an error:
Uncaught ReferenceError: module is not defined
at min.js:376:1
(anonymous) @ min.js:376

It seems as though that min.js file now gets redirected to the cjs version of the module instead of using the ES module.
https://unpkg.com/@ungap/url-search-params@0.2.2/cjs/index.js

This is a breaking error preventing other scripts from loading properly, in our case it is our Wistia script E-v1.js.

Steps to reproduce

Having the module enabled gives us the module error.
Include https://fast.wistia.com/assets/external/E-v1.js

Proposed resolution

Possibly using a cdn that does not redirect to https://unpkg.com/@ungap/url-search-params@0.2.2/cjs/index.js

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024