Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined #3

Open
grussek opened this issue Jan 27, 2023 · 0 comments
Open

Cannot read properties of undefined #3

grussek opened this issue Jan 27, 2023 · 0 comments

Comments

@grussek
Copy link

grussek commented Jan 27, 2023

Generating the documentation of Opc.Ua.NodeSet2.xml with adapted templates does not work. ObjectTypes are found, but the following error is thrown:

$ node src/main.js -n example/Opc.Ua.NodeSet2.xml -t example/opc_ua_template_adapted_original.docx
{
  _: [],
  n: 'example/Opc.Ua.NodeSet2.xml',
  nodeset: 'example/Opc.Ua.NodeSet2.xml',
  t: 'example/opc_ua_template_adapted.docx',
  template: 'example/opc_ua_template_adapted.docx',
  output: 'output.docx',
  o: 'output.docx',
  '$0': 'src\\main.js'
}
Found 0 descriptions
ObjectTypes found:  132
C:\opcua_doc_generator\src\main.js:79
                    switch (modelingRuleNode._) {
                                             ^

TypeError: Cannot read properties of undefined (reading '_')
    at C:\opcua_doc_generator\src\main.js:79:46
    at Array.forEach (<anonymous>)
    at C:\opcua_doc_generator\src\main.js:58:48
    at Array.forEach (<anonymous>)
    at extractObjectTypeTables (C:\opcua_doc_generator\src\main.js:50:39)
    at C:\opcua_doc_generator\src\main.js:298:21    at step (C:\opcua_doc_generator\src\main.js:33:23)
    at Object.next (C:\opcua_doc_generator\src\main.js:14:53)
    at fulfilled (C:\opcua_doc_generator\src\main.js:5:58)

Node.js v18.13.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant