tabler / tabler-icons

A set of over 5700 free MIT-licensed high-quality SVG icons for you to use in your web projects.
https://tabler.io/icons
MIT License
18.31k stars 918 forks source link

Cannot use in production n SvelteKit / Vercel : fails during build #826

Closed MarArMar closed 1 year ago

MarArMar commented 1 year ago

I get this error during a Sveltekit build on Vercel (local build runs fine)

Note : I do NOT use the IconDeviceGamepad anywhere in my app.

build: error during build: build: RollupError: Could not resolve "./icons/IconDeviceGamepad.svelte" from "../../node_modules/.pnpm/@tabler+icons-svelte@2.34.0_svelte@3.59.1/node_modules/@tabler/icons-svelte/dist/svelte/tabler-icons-svelte.js" build: at error (file:///vercel/path0/node_modules/.pnpm/rollup@3.23.0/node_modules/rollup/dist/es/shared/node-entry.js:2124:30) build: at ModuleLoader.handleInvalidResolvedId (file:///vercel/path0/node_modules/.pnpm/rollup@3.23.0/node_modules/rollup/dist/es/shared/node-entry.js:23990:24) build: at file:///vercel/path0/node_modules/.pnpm/rollup@3.23.0/node_modules/rollup/dist/es/shared/node-entry.js:23952:26 build:  ELIFECYCLE  Command failed with exit code 1. build: ERROR: command finished with error: command (/vercel/path0/apps) pnpm run build exited (1) command (/vercel/path0/apps) pnpm run build exited (1)

Clarkden commented 1 year ago

I've been getting this issue as well for the past day. I didn't have it before. I recently upgraded the version.

neriamosgionata commented 1 year ago

Reverting to 2.31 fixes the problem on Linux. On MacOS this error doesn't occur even with >2.32.

I checked in the node_modules dir, on Linux there is no IconDeviceGamepad.svelte.

codecalm commented 1 year ago

fixed 🙂

MarArMar commented 1 year ago

great, you rock @codecalm !