any idea how to fix this client script error: ```I...
# suitescript
a
any idea how to fix this client script error:
Copy code
Invalid define call; unable to load module: /custom-module
but I've checked and the module is there.
d
What module are you trying to import? And how you're doing it?
a
it's a custom module and I'm using the relative path
d
Haven't you forgotten leading "."?
a
no
and here is the second error
Copy code
Module does not exist: N/ui/serverWidget.js
b
when is the error occuring
the error looks like a client script trying to require a serverside script
a
@battk client side
could it be related to the JSDoc?
is there any rule for custom module JSDoc
this is the doc for the custom module
Copy code
/**
 *  @NAPIVersion 2.0
 *  @NModuleScope Public
 */
b
as long as you dont plan on making a suiteapp, you dont need the jsdoc
a
I'm loading some NS modules in my custom module
does the custom module need the doc?
b
id guess no, but i dont know what your custom module looks like
a
it has a function that will accept (recordType, recordID) then it will change the fields layout via serverWidget module
b
you cant use that in a client script
👍 1
c
Just post the code
a
@battk what about server side scripts? and why?
b
different modules support different script types
a
Thanks