ExploreConsulting / netsuite-fasttrack-toolkit-ss2

NFT for SuiteScript 2.X
74 stars 20 forks source link

Importing leads to "Fail to evaluate script: All SuiteScript API Modules are unavailable while executing your define callback." #13

Closed donblackowiak closed 5 years ago

donblackowiak commented 5 years ago

Thank you for creating this great module. I want to use it in my project, but I am unable to run even a simple test without running into Netsuite's "Fail to evaluate script: All SuiteScript API Modules are unavailable while executing your define callback."

This fails to even upload without error above. This seems so simple. I am hoping it's a simple fix. Thanks!

/**

While This works as expected.

/**

ShawnTalbert commented 5 years ago

How are you submitting the code to the file cabinet? I recommend uploading your working skeleton script first to create your initial script record and deployment. Then update the script file via the File Cabinet UI or some external utility - not via copy/paste into the script "edit" display.

NS has (bugs IMHO) rejecting code that works perfectly at runtime.

donblackowiak commented 5 years ago

Thank you Shawn. That did the trick and allowed my test and the included test to work. So I will proceed creating a skeleton first.

ShawnTalbert commented 5 years ago

I do recommend you use TypeScript for the most pleasant experience with NFT