FredKSchott / snowpack

ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️
https://www.snowpack.dev
MIT License
19.48k stars 922 forks source link

🐛 BUG: Astro / Supabase | Unexpected token: 'get' #3598

Open yustarandomname opened 3 years ago

yustarandomname commented 3 years ago

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

When running the steps from below I get this error page at localhost:3000

Screenshot 2021-07-16 at 23 19 26

Steps to Reproduce

  1. npm init astro using template Starter Kit (Generic)
  2. Select any or no framework (doesn't really matter)
  3. npm install --save-dev @supabase/supabase-js
  4. npm run start
  5. When opening localhost:3000 the CLI displays: [parse-error] [90:38]: Unexpected token: 'get'

Link to Minimal Reproducible Example (Optional)

https://github.com/yustarandomname/astro-supabase

FredKSchott commented 3 years ago

Moving this to Snowpack since this is a snowpack issue

ecuber commented 3 years ago

Hey, did you ever find a way around this? Having a similar issue where importing a React component (that I've tested and works in CRA) prevents the page from loading with a similar error:

Failed to load ../dist/bundle.js
  Unexpected token (22210:6430) in /snowpack-test/node_modules/math3d-component/dist/bundle.js