#solid-icons don't work with any ssr adapter.

6 messages · Page 1 of 1 (latest)

heavy geyser
#

I'm using solid-icons in my project.
The project builds fine normally but crashes with the following error when I add the cloudflare ssr adapter.

✘ [ERROR] No matching export in "node_modules/.pnpm/solid-js@1.7.6/node_modules/solid-js/web/dist/server.js" for import "memo"

    node_modules/.pnpm/solid-icons@1.0.8_solid-js@1.7.6/node_modules/solid-icons/lib/index.js:1:47:
      1 │ import { mergeProps, spread, insert, isServer, memo, template } from 'solid-js/web';
        ╵                                                ~~~~

✘ [ERROR] No matching export in "node_modules/.pnpm/solid-js@1.7.6/node_modules/solid-js/web/dist/server.js" for import "template"

    node_modules/.pnpm/solid-icons@1.0.8_solid-js@1.7.6/node_modules/solid-icons/lib/index.js:1:53:
      1 │ import { mergeProps, spread, insert, isServer, memo, template } from 'solid-js/web';
        ╵                                                      ~~~~~~~~

 error   No matching export in "node_modules/.pnpm/solid-js@1.7.6/node_modules/solid-js/web/dist/server.js" for import "memo"
  File:
    node_modules/.pnpm/solid-icons@1.0.8_solid-js@1.7.6/node_modules/solid-icons/lib/index.js:1:47
  Code:
    > 1 | import { mergeProps, spread, insert, isServer, memo, template } from 'solid-js/web';
        |                                               ^
      2 | import { splitProps } from 'solid-js';
      4 | const _tmpl$ = /*#__PURE__*/template(`<svg stroke-width="0"></svg>`, 2),
  Stacktrace:
Error: Build failed with 2 errors:

I tried with the normal node ssr adapter and it seems to build fine.

GitHub

The simplest way to use icons in SolidJS. Contribute to x64Bits/solid-icons development by creating an account on GitHub.

ebon geyserBOT
#
No-one around right now?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

novel belfry
#

Same happened with me, solid-icons don't work with Astro. I've opened an issue in the solid-icons repo several weeks ago, they don't seem to do anything about it

heavy geyser
heavy geyser
#

just checked it out. It's a bug only with cloudlfare adapter

I tried it with cloudflare and vercel as well and they seem to work.

heavy geyser
#

welp nevermind

It just builds locally. When I uploaded it to vercel it failed with the same error