Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Enum type not supported #86

Open
sestegra opened this issue Jun 27, 2020 · 1 comment · May be fixed by #87
Open

Enum type not supported #86

sestegra opened this issue Jun 27, 2020 · 1 comment · May be fixed by #87

Comments

@sestegra
Copy link

When using dart_js_facade_gen version 0.0.7 on google-app-scripts definition files, I got following errors

$ dart_js_facade_gen google-apps-script.utilities.d.ts
/usr/local/lib/node_modules/dart_js_facade_gen/index.js:28
  if (e.name !== 'DartFacadeError') throw e;
                                    ^

TypeError: Cannot read property 'getSourceFile' of undefined
    at Transpiler.reportError (/usr/local/lib/node_modules/dart_js_facade_gen/build/lib/main.js:407:22)
    at FacadeConverter.reportError (/usr/local/lib/node_modules/dart_js_facade_gen/build/lib/base.js:395:25)
    at FacadeConverter.getTypeDeclarationOfSymbol (/usr/local/lib/node_modules/dart_js_facade_gen/build/lib/facade_converter.js:615:18)
    at MergedType.merge (/usr/local/lib/node_modules/dart_js_facade_gen/build/lib/merge.js:39:42)
    at MergedParameter.merge (/usr/local/lib/node_modules/dart_js_facade_gen/build/lib/merge.js:112:19)
    at new MergedParameter (/usr/local/lib/node_modules/dart_js_facade_gen/build/lib/merge.js:105:14)
    at /usr/local/lib/node_modules/dart_js_facade_gen/build/lib/declaration.js:417:33
    at Array.forEach (<anonymous>)
    at DeclarationTranspiler.visitMergingOverloads (/usr/local/lib/node_modules/dart_js_facade_gen/build/lib/declaration.js:346:23)
    at DeclarationTranspiler.visitClassBody (/usr/local/lib/node_modules/dart_js_facade_gen/build/lib/declaration.js:236:14)
$ dart_js_facade_gen google-apps-script.calendar.d.ts
google-apps-script.calendar.d.ts:135:22: no type declarations for symbol GuestStatus
google-apps-script.calendar.d.ts:142:24: no type declarations for symbol Visibility
google-apps-script.calendar.d.ts:161:27: no type declarations for symbol GuestStatus
google-apps-script.calendar.d.ts:165:33: no type declarations for symbol Visibility
google-apps-script.calendar.d.ts:190:22: no type declarations for symbol GuestStatus
google-apps-script.calendar.d.ts:196:24: no type declarations for symbol Visibility
google-apps-script.calendar.d.ts:211:27: no type declarations for symbol GuestStatus
google-apps-script.calendar.d.ts:216:33: no type declarations for symbol Visibility
google-apps-script.calendar.d.ts:232:25: no type declarations for symbol GuestStatus
@sestegra sestegra linked a pull request Jun 27, 2020 that will close this issue
@iampawan
Copy link

Did you find any workaround?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants