acdlite / acdlite/json-sass

jsonSass.convertJs() is undefined v1.3.5

Offen
#5 0 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
96
Forks
25
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'm pretty new to nodeJS so please excuse any misunderstanding on how this should be used.

I'm including via var jsonSass = require( 'json-sass' ); in my JS file.

When i'm using the jsonSass.convertJs( [1,2,3] ) function I get the following console error:
'Fatal error: undefined is not a function'

I've worked around this locally by changing jsonSass.js file:

from:
exports.convertJs = jsToSassString;

to:
module.exports.convertJs = jsToSassString;

This resolves the issue, but clearly my local fix will be overwritten when building the project from scratch so this is far from ideal.

I'm not sure if this is a bug with v 1.3.5 or if my understanding of the usage is incorrect.

Any help would be greatly received.

EDIT: I've just downgraded to 1.2.1 and this has resolved the issue for me.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.