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: The requested module 'solid-js/web' does not provide an export named 'memo' #1433

Closed
1 of 3 tasks
andrewrosss opened this issue Sep 19, 2023 · 1 comment
Closed
1 of 3 tasks

Comments

@andrewrosss
Copy link

Description

Love where Chakra, Panda, Zag, and Ark are going! Super excited for the future! :)

As per the suggested template: When I install @ark-ui/solid@0.11.0 and use one of the components (in this case Avatar) in the SSR-enabled solid-start application (solid-start@0.3.5, solid-js@1.7.12) I expect the application to render the component, but instead the application crashes with the following error:

9:37:18 PM [vite] Error when evaluating SSR module ~start/entry-server: failed to import "/node_modules/.pnpm/solid-start@0.3.5_@solidjs+meta@0.28.6_@solidjs+router@0.8.3_solid-js@1.7.11_solid-start-node_nkiuyt5rjrkisoqsxjnsfslddu/node_modules/solid-start/entry-server/index.ts"
|- file:///Users/andrewrosss/Documents/sandbox/andrewrosss/divvy-how/node_modules/.pnpm/@ark-ui+solid@0.11.0_solid-js@1.7.11/node_modules/@ark-ui/solid/environment/environment.mjs:1
import { createComponent, memo, use, template } from 'solid-js/web';
                          ^^^^
SyntaxError: The requested module 'solid-js/web' does not provide an export named 'memo'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

An unhandled error occured: file:///Users/andrewrosss/Documents/sandbox/andrewrosss/divvy-how/node_modules/.pnpm/@ark-ui+solid@0.11.0_solid-js@1.7.11/node_modules/@ark-ui/solid/environment/environment.mjs:1
import { createComponent, memo, use, template } from 'solid-js/web';
                          ^^^^
SyntaxError: The requested module 'solid-js/web' does not provide an export named 'memo'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
An unhandled error occured: file:///Users/andrewrosss/Documents/sandbox/andrewrosss/divvy-how/node_modules/.pnpm/@ark-ui+solid@0.11.0_solid-js@1.7.11/node_modules/@ark-ui/solid/environment/environment.mjs:1
import { createComponent, memo, use, template } from 'solid-js/web';
                          ^^^^
SyntaxError: The requested module 'solid-js/web' does not provide an export named 'memo'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

Not sure if Ark is expected to work with SSR'd solid-js?

Link to Reproduction

https://codesandbox.io/p/sandbox/polished-paper-wn54mp

Steps to reproduce

  1. Start the app.
  2. The app should crash.
  3. (See the file src/routes/index.tsx for where the Avatar component is used)

Ark UI Version

@ark-ui/solid@0.11.0

Framework

  • React
  • Solid
  • Vue

Browser

Firefox 115.0.2 (64-bit)

Additional Information

Running on a 2021 M1 Macbook Pro

@andrewrosss
Copy link
Author

Wow, somehow missed #1363. Closing in favor of that one.

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

1 participant