Cant find module


I ve been trying to load a theme from the git , given in the docs
i have followed the whole tutorial but there is an error i couldnt rectify that is " cant find module server/api " please help


Can you be more specific about exactly what you did? There isn’t really enough info here to offer much advise.


I have followed the tutorial of creating template in reaction commerce which is in the docs of the reaction commerce website , This is what i did
i am copying the client folder ( having index.js and a .less(styles) file in it ) in imports/plugins/custom folder and copying the registry.js in reaction folder and after that i did reaction reset . but there is an error of "cant find module server/api’ . could you help ?


Seeing actual code would make it a lot easier to make a suggestion, but one thing that stands out from what you have said so far is that it should be "/server/api", not "server/api"


yeah its /server/api but still couldnt resolve the error

this my register.js file present in reaction folder :
import { Reaction } from “/server/api”;

// Name of the theme for presentation purposes
label: “index”,

// Name of your theme to uniquely identify it from other themes
name: “index.js”

and there is client folder present in imports/plugins/custom folder having two files
index .js :
// Import CSS
import “./styles/main.less”;

and second one is is just main.less file .