TypeError: Cannot call method 'replace' of null #128

Closed
corysimmons opened this Issue Nov 7, 2013 · 5 comments

Comments

Projects
None yet
3 participants
@corysimmons
Contributor

corysimmons commented Nov 7, 2013

mojotech/jeet#102

TypeError: Cannot call method 'replace' of null
at Autoprefixer.removeBadComments (C:\Users\den\AppData\Roaming\npm\node_mod
ules\jeet\node_modules\autoprefixer-stylus\node_modules\autoprefixer\lib\autopre
fixer.js:83:18)
at C:\Users\den\AppData\Roaming\npm\node_modules\jeet\node_modules\autoprefi
xer-stylus\node_modules\autoprefixer\lib\autoprefixer.js:51:28
at Autoprefixer.catchParseErrors (C:\Users\den\AppData\Roaming\npm\node_modu
les\jeet\node_modules\autoprefixer-stylus\node_modules\autoprefixer\lib\autopref
ixer.js:72:16)
at Autoprefixer.compile (C:\Users\den\AppData\Roaming\npm\node_modules\jeet\
node_modules\autoprefixer-stylus\node_modules\autoprefixer\lib\autoprefixer.js:5
0:20)
at Array.0 (C:\Users\den\AppData\Roaming\npm\node_modules\jeet\node_modules\
autoprefixer-stylus\index.js:8:64)
at Renderer.render (C:\Users\den\AppData\Roaming\npm\node_modules\stylus\lib
\renderer.js:93:29)
at C:\Users\den\AppData\Roaming\npm\node_modules\stylus\bin\stylus:534:15
at fs.js:266:14
at Object.oncomplete (fs.js:107:15)

The user encountered this while trying to use the Jeet Stylus framework which relies on autoprefixer-stylus which basically just waits for Stylus to compile, then runs Autoprefixer on the compiled CSS.

Any ideas?

@corysimmons

This comment has been minimized.

Show comment Hide comment
@corysimmons

corysimmons Nov 7, 2013

Contributor

Replication on Windows:

npm install -g stylus jeet
stylus -u jeet -w -c
Contributor

corysimmons commented Nov 7, 2013

Replication on Windows:

npm install -g stylus jeet
stylus -u jeet -w -c
@corysimmons

This comment has been minimized.

Show comment Hide comment
@corysimmons

corysimmons Nov 7, 2013

Contributor

Another user, same issue... mojotech/jeet#103

Contributor

corysimmons commented Nov 7, 2013

Another user, same issue... mojotech/jeet#103

@corysimmons corysimmons referenced this issue in mojotech/jeet Nov 7, 2013

Closed

Erorr window 7 #103

@jtremback

This comment has been minimized.

Show comment Hide comment
@jtremback

jtremback Nov 20, 2013

Same issue. On Mac. Do older versions of autoprefixer work?

Same issue. On Mac. Do older versions of autoprefixer work?

@ai

This comment has been minimized.

Show comment Hide comment
@ai

ai Dec 7, 2013

Member

Seems, Autoprefixer.compile(css) calls with undefined in css.

I think issue is in autoprefixer-stylus. Maybe stylus version is old and didn’t pass css argument to end event.

Member

ai commented Dec 7, 2013

Seems, Autoprefixer.compile(css) calls with undefined in css.

I think issue is in autoprefixer-stylus. Maybe stylus version is old and didn’t pass css argument to end event.

@ai

This comment has been minimized.

Show comment Hide comment
@ai

ai Dec 7, 2013

Member

I am not Stylus user, so I can’t help you with Stylus hacks and usage :(. So I close issue here.

Member

ai commented Dec 7, 2013

I am not Stylus user, so I can’t help you with Stylus hacks and usage :(. So I close issue here.

@ai ai closed this Dec 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment