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' #26

Closed
phlegx opened this issue May 26, 2023 · 1 comment
Closed

SyntaxError: Unexpected token 'export' #26

phlegx opened this issue May 26, 2023 · 1 comment
Labels
bug Something isn't working fixed

Comments

@phlegx
Copy link
Contributor

phlegx commented May 26, 2023

Hi!

I use latest version 4.1.2 with Vite 4.x, vite-ssr and I get this error:

[vite] Error when evaluating SSR module /.../vue3/src/main.js: failed to import "/src/common/touch.js"
|- /.../vue3/node_modules/vue3-touch-events/index.js:416
export default vueTouchEvents
^^^^^^

SyntaxError: Unexpected token 'export'

If I add "type": "module", to package.json of vue3-touch-events all works fine again. Can this be added and released please?

Related issue: #23

phlegx added a commit to phlegx/vue3-touch-events that referenced this issue May 31, 2023
@robinrodricks
Copy link
Owner

Published, please check?

@robinrodricks robinrodricks added bug Something isn't working fixed labels Jun 3, 2023
@phlegx phlegx closed this as completed Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants