You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.
I am returning an Unhandled rejection TypeError cannot read property 'prototype' of undefined error when using gulp-inline-css with preserveMediaQueries: true to preserve the media query:
Other media queries are working properly, but @font-face seems to throw an error that I cannot decipher. The full error is as follows:
Unhandled rejection TypeError: Cannot read property 'prototype' of undefined
at C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\mediaquery-text\ind
ex.js:37:107
at Array.forEach (native)
at C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\mediaquery-text\ind
ex.js:36:28
at Array.forEach (native)
at module.exports (C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\med
iaquery-text\index.js:23:11)
at Object.<anonymous> (C:\Users\Andrew\Desktop\Localvore\Markup\node_modules
\style-data\index.js:39:32)
at initialize.exports.each (C:\Users\Andrew\Desktop\Localvore\Markup\node_mo
dules\cheerio\lib\api\traversing.js:293:24)
at module.exports (C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\sty
le-data\index.js:25:16)
at C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\extract-css\index.j
s:14:9
at next (C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\batch\index.j
s:118:7)
at Batch.end (C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\batch\in
dex.js:154:5)
at module.exports (C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\ext
ract-css\index.js:24:11)
at C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\inline-css\lib\inli
neContent.js:15:9
at tryCatcher (C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\bluebir
d\js\main\util.js:26:23)
at Promise._resolveFromResolver (C:\Users\Andrew\Desktop\Localvore\Markup\no
de_modules\bluebird\js\main\promise.js:483:31)
at new Promise (C:\Users\Andrew\Desktop\Localvore\Markup\node_modules\bluebi
rd\js\main\promise.js:71:37)
The text was updated successfully, but these errors were encountered:
I ran into the same issue yesterday and found out that the currently published CSSOM on npm is missing parts of its functionalities. Its prepublish script may have failed —Anyway. For the time being, we'll have to run its Jake build script ourselves before using mediaquery-text.
Also: @font-face check is missing in the test suite.
Daylon
added a commit
to Daylon/mediaquery-text
that referenced
this issue
Jul 23, 2017
I am returning an
Unhandled rejection TypeError cannot read property 'prototype' of undefined
error when using gulp-inline-css withpreserveMediaQueries: true
to preserve the media query:Other media queries are working properly, but
@font-face
seems to throw an error that I cannot decipher. The full error is as follows:The text was updated successfully, but these errors were encountered: