https://github.com/rixo/repro-rollup-commonjs-system
https://github.com/rixo/repro-rollup-commonjs-system
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rixo/repro-rollup-commonjs-system
- Owner: rixo
- Created: 2020-09-22T22:02:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T22:07:38.000Z (almost 6 years ago)
- Last Synced: 2025-02-25T09:29:10.313Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reproduction case
- https://github.com/rollup/plugins/issues/583
- https://github.com/rixo/rollup-plugin-svelte-hot/issues/9
## Usage
~~~bash
git clone git@github.com:rixo/repro-rollup-commonjs-system.git
cd repro-rollup-commonjs-system
npm install
npm run start
~~~
Open browser at http://localhost:5000
**Error**
~~~
TypeError: Cannot read property '__esModule' of undefined
at getAugmentedNamespace (_commonjsHelpers.js:40)
at Object.execute (parser.mjs_commonjs-proxy:12)
at i (hmr-runtime.js:1)
at e (hmr-runtime.js:1)
at hmr-runtime.js:1
at Array.forEach ()
at e (hmr-runtime.js:1)
at hmr-runtime.js:1
at Array.forEach ()
at e (hmr-runtime.js:1)
~~~
**Expected**
No error, gql lib should be logged in the console.
## Previous working version
~~~bash
npm i -D @rollup/plugin-commonjs@15.0
npm run start
~~~
In the browser: the gql lib is logged correctly.