Skip to content
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.

Babel.transform fails when localStorage.debug = '*' #30

Closed
HQidea opened this issue Apr 20, 2016 · 7 comments
Closed

Babel.transform fails when localStorage.debug = '*' #30

HQidea opened this issue Apr 20, 2016 · 7 comments
Labels

Comments

@HQidea
Copy link

HQidea commented Apr 20, 2016

maybe should use browser field in package.json instead of main when require('debug'), but I am not sure whether it's a webpack bug

@Daniel15
Copy link
Member

Do you get an error message?

@HQidea
Copy link
Author

HQidea commented Apr 21, 2016

yes

Uncaught TypeError: unknown: Cannot read property 'write' of undefined(…)
log @ babel.js:38160
enabled @ babel.js:71978
debug @ babel.js:32676
parse @ babel.js:7665
parseCode @ babel.js:7755
(anonymous function) @ babel.js:33073
wrap @ babel.js:7715
transform @ babel.js:33071
transform @ babel.js:137
(anonymous function) @ VM809:1
_evaluateOn @ (program):145
_evaluateAndWrap @ (program):137
evaluate @ (program):118

@HQidea
Copy link
Author

HQidea commented Apr 21, 2016

it also appears in https://babeljs.io/repl/

@Daniel15
Copy link
Member

Daniel15 commented Apr 24, 2016

@HQidea - Could you please provide instructions on how to replicate the issue on https://babeljs.io/repl/? I'm having trouble working out exactly where you're doing localStorage.debug = '*'. You can copy and paste the URL to the REPL, as all the state is in the URL.

@HQidea
Copy link
Author

HQidea commented Apr 25, 2016

@Daniel15

  1. open https://babeljs.io/repl/
  2. open console and set localStorage.debug = '*'
  3. reload https://babeljs.io/repl/
  4. all transforms fail

@HQidea
Copy link
Author

HQidea commented May 10, 2016

@Daniel15 this issue is still there, the bundle file remains using Node.js version of visionmedia-debug

@Daniel15
Copy link
Member

I haven't released a new version of babel-standalone yet. I'll do so once a new Babel version comes out.

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

No branches or pull requests

2 participants