Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RollupError: Octal literal in strict mode #52

Open
KevinKWZheng opened this issue Jan 16, 2023 · 1 comment
Open

RollupError: Octal literal in strict mode #52

KevinKWZheng opened this issue Jan 16, 2023 · 1 comment

Comments

@KevinKWZheng
Copy link

I am trying to use this module in my ts project, but Rollup keeps giving me errors

[!] (plugin rpt2) RollupError: Octal literal in strict mode (3:13)
node_modules/qrcode-terminal/lib/main.js (3:13)
1: var QRCode = require('./../vendor/QRCode'),
2: QRErrorCorrectLevel = require('./../vendor/QRCode/QRErrorCorrectLevel'),
3: black = "\033[40m \033[0m",
^
4: white = "\033[47m \033[0m",
5: toCell = function (isBlack) {

It seems that Rollup has mistaken '\033' as an octal number. I've tried setting skipLibCheck in tsconfig, and excluding node_modules, but it is still giving this error.

@guivictorr
Copy link

This seems to be related to #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants