aurelia / aurelia/cli

Npm package 'qrcode' causes Uncaught RangeError: Maximum call stack size exceeded

Open
#1,086 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
402
Forks
134
PR merge metrics
No merged PRs in 30d

Description

**I'm submitting a bug report**

* **Library Version:**
1.0.0-beta.15

**Please tell us about your environment:**
* **Operating System:**
Windows 10

* **Node Version:**
v8.11.3

* **NPM Version:**
6.7.0

* **Browser:**
all

* **Language:**
ESNext

* **Loader/bundler:**
RequireJS

**Current behavior:**
Importing 'qrcode' npm package causes an "Exceeded Callstack" error. Prevent page load.
`VM1366 vendor-bundle.js:55 Uncaught RangeError: Maximum call stack size exceeded`

**Repro Steps**
1. `au new` ESNext/RequireJS/SASS/Babel/Max Minification
2. `npm i qrcode`
3. `import * as qrcode from 'qrcode'` or `import qrcode from 'qrcode'` or `import 'qrcode'`

* **What is the expected behavior?**
Importing 'qrcode' npm package not to break.

**PS**
I wish I knew what was causing this, perhaps I'm doing something wrong on my end? I did an update from 0.33 to 1.0b15 as I've done with several of my projects and this one just happened to have that npm package in there causing that issue.
Full picture cause yth not http://prntscr.com/n9b0j6

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with Aurelia CLI using the listed ESNext/RequireJS setup, installing qrcode 1.0.0-beta.15 and importing it as described. Start by examining the generated vendor-bundle.js around the reported stack-overflow location. Done means the page loads successfully and importing qrcode no longer causes an Uncaught RangeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.