corenova / yang-js

YANG parser and composer
Apache License 2.0
56 stars 18 forks source link

when i'm parsing file it getting error #149

Open Priyanshukeshri opened 1 year ago

Priyanshukeshri commented 1 year ago

This is the error C:\Users\kumarkes\Downloads\check\python\yang\node_modules\yang-js\lib\yang.js:328 for (j = 0, len1 = modules.length; j < len1; j++) { ^

TypeError: Cannot read properties of undefined (reading 'length') at prefix2module (C:\Users\kumarkes\Downloads\check\python\yang\node_modules\yang-js\lib\yang.js:328:42) at normalizeEntry (C:\Users\kumarkes\Downloads\check\python\yang\node_modules\yang-js\lib\yang.js:354:23) at Array.map () at Function.normalizePath (C:\Users\kumarkes\Downloads\check\python\yang\node_modules\yang-js\lib\yang.js:359:34) at Function.locate (C:\Users\kumarkes\Downloads\check\python\yang\node_modules\yang-js\lib\yang.js:386:33) at Function.locate (C:\Users\kumarkes\Downloads\check\python\yang\node_modules\yang-js\lib\yang.js:384:30) at Function. (C:\Users\kumarkes\Downloads\check\python\yang\node_modules\yang-js\lib\lang\extensions.js:193:27)
at Function.resolve (C:\Users\kumarkes\Downloads\check\python\yang\node_modules\yang-js\lib\lang\extensions.js:200:12) at Function.compile (C:\Users\kumarkes\Downloads\check\python\yang\node_modules\yang-js\lib\expression.js:49:17) at Function.compile (C:\Users\kumarkes\Downloads\check\python\yang\node_modules\yang-js\lib\yang.js:168:22)

Node.js v18.14.0