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

SyntaxError: Unexpected token 'export' #11

Closed
brianlukoff opened this issue Jun 5, 2024 · 3 comments
Closed

SyntaxError: Unexpected token 'export' #11

brianlukoff opened this issue Jun 5, 2024 · 3 comments

Comments

@brianlukoff
Copy link

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.

Copy link

github-actions bot commented Jun 5, 2024

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

@jankapunkt
Copy link
Member

@brianlukoff can you please check if this is resolved with version 2.0.0?

@brianlukoff
Copy link
Author

It is working with 2.0.0 -- thanks!

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

2 participants