reactour icon indicating copy to clipboard operation
reactour copied to clipboard

ModuleNotFoundError: Module not found: Error: Can't resolve 'reactour' NextJs CI

Open vincent38wargnier opened this issue 3 years ago • 5 comments

Hi, I've installed reactour on my project in NextJs, everything works locally, but I don't know why I get this error on the CI : ModuleNotFoundError: Module not found: Error: Can't resolve 'reactour' To Reproduce : This is how I'm importing the library :

import dynamic from 'next/dynamic'

const Tour = dynamic(() => import('reactour'), {
  ssr: false,
})

Expected behaviour I don't get what can causes that the CI doesn't find the module when everything builds perfectly locally.

Screenshots image

Desktop (please complete the following information):

OS: linux for the CI, windows for the local Browser chrome Linux Version : 3.14.6 NodeJs Version : 14.19.3 Thank you.

vincent38wargnier avatar Aug 26 '22 14:08 vincent38wargnier

This is happening also for the online demo version which is a NextJS app and works ok locally. Which version of @reactour/tour are you using?

elrumordelaluz avatar Aug 27 '22 10:08 elrumordelaluz

Hi, I'm using reactour v 1.15.5. How do you do to make it working on the server then? Thank you.

vincent38wargnier avatar Aug 27 '22 14:08 vincent38wargnier

Mind creating a minimal reproduction in a sandbox?

elrumordelaluz avatar Aug 28 '22 20:08 elrumordelaluz

Is this still happening?

elrumordelaluz avatar Sep 07 '22 08:09 elrumordelaluz

Sorry, I'm not using it with NextJs anymore, I use directly react. I Might use it with NextJs soon I will let you know.

vincent38wargnier avatar Jan 21 '23 20:01 vincent38wargnier