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

ESM imports don't work at all in vite/sveltekit since recent update #852

Open
JorensM opened this issue Jul 29, 2024 · 2 comments
Open

ESM imports don't work at all in vite/sveltekit since recent update #852

JorensM opened this issue Jul 29, 2024 · 2 comments

Comments

@JorensM
Copy link
Contributor

JorensM commented Jul 29, 2024

So I just updated this package from 13.0.3 to 13.0.14, and suddenly my entire sveltekit project stopped working - it seems that every single import statement returns undefined. I'm guessing it's due to one of Babel's dependencies being updated. When I have some free time I'll pinpoint the exact version where this starts occuring.

For now here are my dependencies:

"devDependencies": {
    "@babeard/svelte-heroicons": "^2.0.0-rc.0",
    "@playwright/test": "^1.44.1",
    "@rgossiaux/svelte-headlessui": "^2.0.0",
    "@rgossiaux/svelte-heroicons": "^0.1.2",
    "@sveltejs/adapter-static": "^2.0.3",
    "@sveltejs/kit": "^1.29.0",
    "@tailwindcss/forms": "^0.5.7",
    "@types/croppie": "^2.6.4",
    "@types/google.maps": "^3.54.10",
    "@types/node": "^20.14.6",
    "autoprefixer": "^10.4.16",
    "cross-env": "^7.0.3",
    "env-cmd": "^10.1.0",
    "eslint": "^8.55.0",
    "eslint-config-prettier": "^9.1.0",
    "eslint-plugin-svelte3": "^4.0.0",
    "postcss": "^8.4.32",
    "prettier": "^3.1.1",
    "prettier-plugin-svelte": "^3.1.2",
    "prettier-plugin-tailwindcss": "^0.5.9",
    "svelte": "^3.59.2",
    "svelte-check": "^3.6.0",
    "svelte-preprocess": "^5.1.1",
    "swagger-typescript-api": "^13.0.14",
    "tailwindcss": "^3.3.6",
    "timemachine": "^0.3.2",
    "typescript": "^5.3.3",
    "vite": "^4.5.1"
  },
  "dependencies": {
    "@auth0/auth0-spa-js": "^2.1.3",
    "@typescript-eslint/eslint-plugin": "^6.14.0",
    "@typescript-eslint/parser": "^6.14.0",
    "awesome-phonenumber": "^6.10.0",
    "clsx": "^2.0.0",
    "country-flag-icons": "^1.5.9",
    "croppie": "^2.6.5",
    "flag-icons": "^7.1.0",
    "focus-trap": "^7.5.4",
    "keycloak-js": "^24.0.2",
    "moment": "^2.29.4",
    "serve": "^14.2.3",
    "svelte-i18n": "^4.0.0",
    "svelte-tel-input": "^3.3.9",
    "sveltekit-superforms": "^2.1.0",
    "yup": "^1.3.3"
  },
@smorimoto
Copy link
Collaborator

A minimal example is needed, not a dump of package.json.

@JorensM
Copy link
Contributor Author

JorensM commented Jul 30, 2024

A minimal example is needed, not a dump of package.json.

As mentioned I will find some time to pinpoint the exact version and conditions, just wanted to give a heads up in case this might be affecting more people or if someone wants to investigate.

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