Meteor-Community-Packages / meteor-autoform-themes

Officially supported themes for aldeed:autoform
MIT License
3 stars 6 forks source link

SyntaxError: Unexpected token 'export' #11

Open brianlukoff opened 3 months ago

brianlukoff commented 3 months ago

I'm getting an error when starting an app using 2.0.0-rc.0 of communitypackages:autoform-bootstrap3 running RC2 of Meteor 3.0:

I20240605-16:16:26.282(-5)? error on boot.js packages/communitypackages_autoform-bootstrap3.js:15
I20240605-16:16:26.282(-5)? export const AutoFormThemeBootstrap3 = {}
I20240605-16:16:26.282(-5)? ^^^^^^
I20240605-16:16:26.282(-5)?
I20240605-16:16:26.282(-5)? SyntaxError: Unexpected token 'export'
I20240605-16:16:26.282(-5)?     at new Script (node:vm:116:7)
I20240605-16:16:26.282(-5)?     at createScript (node:vm:268:10)
I20240605-16:16:26.283(-5)?     at Object.runInThisContext (node:vm:316:10)
I20240605-16:16:26.283(-5)?     at /tools/static-assets/server/boot.js:414:32
I20240605-16:16:26.283(-5)?     at /tools/static-assets/server/boot.js:503:13
I20240605-16:16:26.283(-5)?     at AsyncLocalStorage.run (node:async_hooks:346:14)
I20240605-16:16:26.283(-5)?     at /tools/static-assets/server/boot.js:502:37
I20240605-16:16:26.283(-5)?     at Function.run (/Users/brian/workspaces/perusall/app/.meteor/local/build/programs/server/tools/tool-env/profile.ts:315:14)
I20240605-16:16:26.283(-5)?     at startServerProcess (/tools/static-assets/server/boot.js:501:17)
I20240605-16:16:26.283(-5)?     at Object.<anonymous> (/tools/static-assets/server/boot.js:508:2)
I20240605-16:16:26.283(-5)?     at Object.<anonymous> (/tools/static-assets/server/boot.js:512:4)
I20240605-16:16:26.283(-5)?     at Module._compile (node:internal/modules/cjs/loader:1369:14)
I20240605-16:16:26.283(-5)?     at Module.Mp._compile (/tools/static-assets/server/runtime.js:78:21)
I20240605-16:16:26.283(-5)?     at Object.Module._extensions..js (/tools/static-assets/server/runtime.js:112:21)
I20240605-16:16:26.283(-5)?     at Module.load (node:internal/modules/cjs/loader:1206:32)
I20240605-16:16:26.283(-5)?     at Module.Mp.load (/tools/static-assets/server/runtime.js:35:31)
I20240605-16:16:26.285(-5)? packages/communitypackages_autoform-bootstrap3.js:15
I20240605-16:16:26.285(-5)? export const AutoFormThemeBootstrap3 = {}
I20240605-16:16:26.285(-5)? ^^^^^^
I20240605-16:16:26.285(-5)?
I20240605-16:16:26.285(-5)? SyntaxError: Unexpected token 'export'
I20240605-16:16:26.285(-5)?     at new Script (node:vm:116:7)
I20240605-16:16:26.285(-5)?     at createScript (node:vm:268:10)
I20240605-16:16:26.285(-5)?     at Object.runInThisContext (node:vm:316:10)
I20240605-16:16:26.285(-5)?     at /tools/static-assets/server/boot.js:414:32
I20240605-16:16:26.285(-5)?     at /tools/static-assets/server/boot.js:503:13
I20240605-16:16:26.285(-5)?     at AsyncLocalStorage.run (node:async_hooks:346:14)
I20240605-16:16:26.285(-5)?     at /tools/static-assets/server/boot.js:502:37
I20240605-16:16:26.285(-5)?     at Function.run (/Users/brian/workspaces/perusall/app/.meteor/local/build/programs/server/tools/tool-env/profile.ts:315:14)
I20240605-16:16:26.285(-5)?     at startServerProcess (/tools/static-assets/server/boot.js:501:17)
I20240605-16:16:26.285(-5)?     at Object.<anonymous> (/tools/static-assets/server/boot.js:508:2)
I20240605-16:16:26.285(-5)?     at Object.<anonymous> (/tools/static-assets/server/boot.js:512:4)
I20240605-16:16:26.285(-5)?     at Module._compile (node:internal/modules/cjs/loader:1369:14)
I20240605-16:16:26.285(-5)?     at Module.Mp._compile (/tools/static-assets/server/runtime.js:78:21)
I20240605-16:16:26.286(-5)?     at Object.Module._extensions..js (/tools/static-assets/server/runtime.js:112:21)
I20240605-16:16:26.286(-5)?     at Module.load (node:internal/modules/cjs/loader:1206:32)
I20240605-16:16:26.286(-5)?     at Module.Mp.load (/tools/static-assets/server/runtime.js:35:31)
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.

To reproduce, create a plain Meteor 3.0 RC2 app (meteor create <appname> --release 3.0-rc.2) and then add communitypackages:autoform-bootstrap3 to the packages file.

github-actions[bot] commented 3 months ago

Thank you for submitting this issue!

We, the Members of Meteor Community Packages take every issue seriously. Our goal is to provide long-term lifecycles for packages and keep up with the newest changes in Meteor and the overall NodeJs/JavaScript ecosystem.

However, we contribute to these packages mostly in our free time. Therefore, we can't guarantee your issues to be solved within certain time.

If you think this issue is trivial to solve, don't hesitate to submit a pull request, too! We will accompany you in the process with reviews and hints on how to get development set up.

Please also consider sponsoring the maintainers of the package. If you don't know who is currently maintaining this package, just leave a comment and we'll let you know