another problem installing the items carousels plugin on remix #8380
Unanswered
enricoloverso
asked this question in
Q&A
Replies: 1 comment
-
anyone? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
HI
I need to install this plugin on my remix project
"https://reactjsexample.com/a-beautiful-scroll-triggered-carousel-with-react/"
After the installation I have this error:
"
remix dev
info building...
info built (292ms)
file:///Users/alberto/Lavori/nurale/remix/my-remix-app/build/index.js:135
import ScrollCarousel from "scroll-carousel-react";
^^^^^^^^^^^^^^
SyntaxError: The requested module 'scroll-carousel-react' does not provide an export named 'default'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:132:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:214:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:28:7)
at async handleMainPromise (node:internal/modules/run_main:113:12)
"
root.tsx:
...
<ScrollCarousel
autoplay
autoplaySpeed={8}
speed={7}
onReady={() => console.log('I am ready')}
>
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map((item) => (
{item}
))}
Below is my package.json.
{
"type": "module",
"name": "my-remix-app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "remix dev -c "node server.mjs"",
"test": "echo "Error: no test specified" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@remix-run/express": "^2.3.0",
"@remix-run/node": "^2.2.0",
"@remix-run/react": "^2.2.0",
"@remix-run/serve": "^2.2.0",
"express": "^4.18.2",
"isbot": "^3.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remix-utils": "^7.4.0",
"scroll-carousel-react": "^1.0.0"
},
"devDependencies": {
"@remix-run/dev": "^2.2.0"
}
}
can you help me?
Beta Was this translation helpful? Give feedback.
All reactions