ExLibrisGroup / spineomatic-cloudapp

Cloud App version of SpineOMatic
BSD 3-Clause "New" or "Revised" License
5 stars 5 forks source link

issues when trying to install the SpineOMatic cloud app for local development #113

Closed HSteeleLTS closed 1 year ago

HSteeleLTS commented 1 year ago

See below. I installed Angular and can create an app to use , but when I bring this app in, I get all the errors below that seem to not allow me to run it

Error: ../node_modules/parseley/lib/parseley.mjs 635:26-33 Can't import the named export 'Grammar' from non EcmaScript module (only default export is available)

Error: ../node_modules/parseley/lib/parseley.mjs 635:19-25 Can't import the named export 'Parser' from non EcmaScript module (only default export is available)

Error: ../node_modules/@selderee/plugin-htmlparser2/lib/hp2-builder.mjs 20:13-19 Can't import the named export 'Picker' from non EcmaScript module (only default export is available)

Error: ../node_modules/selderee/lib/selderee.mjs 819:13-31 Can't import the named export 'compareSpecificity' from non EcmaScript module (only default export is available)

Error: ../node_modules/selderee/lib/selderee.mjs 824:13-31 Can't import the named export 'compareSpecificity' from non EcmaScript module (only default export is available)

Error: ../node_modules/parseley/lib/parseley.mjs 14:12-23 Can't import the named export 'compile' from non EcmaScript module (only default export is available)

Error: ../node_modules/@selderee/plugin-htmlparser2/lib/hp2-builder.mjs 171:9-14 Can't import the named export 'isTag' from non EcmaScript module (only default export is available)

Error: ../node_modules/@selderee/plugin-htmlparser2/lib/hp2-builder.mjs 176:19-24 Can't import the named export 'isTag' from non EcmaScript module (only default export is available)

Error: ../node_modules/selderee/lib/selderee.mjs 167:2-20 Can't import the named export 'normalize' from non EcmaScript module (only default export is available)

Error: ../node_modules/selderee/lib/selderee.mjs 148:25-40 Can't import the named export 'parse1' from non EcmaScript module (only default export is available)

Error: ../node_modules/selderee/lib/selderee.mjs 512:11-29 Can't import the named export 'serialize' from non EcmaScript module (only default export is available)

mgobat commented 1 year ago

@HSteeleLTS, looks like this is for the Cloud App version. I'm going to move this issue to the correct repository.

mgobat commented 1 year ago

@HSteeleLTS, these errors result from issuing the 'eca start' command, or they appear in the web browser console when running your local copy of the SpineOMatic Cloud App, or something else? Thanks.

HSteeleLTS commented 1 year ago

they occur when I issue the eca start command, after the server starts, when the web pages launches.

Note I am on a 64 bit Windows machine. I think the problem may be a version of npm I'm on. My version of node is 16 but npm is 9.1.0

mgobat commented 1 year ago

Does node 16 require npm 9.1.0? I'm still using npm 6.13.4 with node 12.16.1.

HSteeleLTS commented 1 year ago

Hmm maybe that's not it then.

Any other ideas?

mgobat commented 1 year ago

No, I am unfamiliar with the errors you are getting. I'll see what I can figure out...but meanwhile, it might be worth a try to downgrade your versions of npm and/or node to see if that resolves the problems.

HSteeleLTS commented 1 year ago

Hey there. Quick update to save you trouble on your end. I realize these errors were coming from a package I was including html-to-text. So I’m investigating. Thanks for your response. I’ll touch back if I have more issues

Sent from my iPhone

On Jun 8, 2023, at 4:34 PM, mgobat @.***> wrote:



No, I am unfamiliar with the errors you are getting. I'll see what I can figure out...but meanwhile, it might be worth a try to downgrade your versions of npm and/or node to see if that resolves the problems.

— Reply to this email directly, view it on GitHubhttps://github.com/ExLibrisGroup/spineomatic-cloudapp/issues/113#issuecomment-1583300239, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKSSAAVF6GBWYWUJBOZVKL3XKIZN5ANCNFSM6AAAAAAY7XLWCM. You are receiving this because you were mentioned.Message ID: @.***>

Caution: This message originated from outside of the Tufts University organization. Please exercise caution when clicking links or opening attachments. When in doubt, email the TTS Service Desk at @.**@.> or call them directly at 617-627-3376.

mgobat commented 1 year ago

@HSteeleLTS, thanks for the update. I'll close this issue then.