Skip to content

when i'm parsing file it getting error #149

@Priyanshukeshri

Description

@Priyanshukeshri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions