Does anybody have ever developed NetSuite SPA with...
# general
f
Does anybody have ever developed NetSuite SPA with VSCode and TypeScript? I have some issues with the types
Copy code
Cannot find module '@uif-js/core' or its corresponding type declarations.
I have followed the NetSuite guide on the documentation, but I don't find a way out.
Copy code
"devDependencies": {
    "@oracle/suitecloud-uif-types": "^5.0.0",
    "typescript": "^5.2.0"
}

"compilerOptions": {
    "typeRoots": {
        "node_modules/@types",
        "node_modules/@oracle/suitecloud-uif-types"
    }
}
t
@Faiz Byputra Just copy one of their samples. I've made 4/5 SPA pages and never wrote my own stuff from scratch
They have all the config and build stuff setup already just change the name
m
@BS has been sharing some of his SPA experiments on LinkedIn
👍 1
b
@Faiz Byputra first start nmp i by installing the necessary packages. Also make sure to use the lastest uif package. The version which is defined as the dev dependency is v5 while v7.01 is the latest version. See my article here https://www.linkedin.com/pulse/getting-started-netsuites-ui-framework-resolving-build-budy-sutjijati-vhqsf?utm_source=share&utm_medium=member_ios&utm_campaign=share_via
p
Hello @BS - Thank you for sharing the content on LinkedIn. It is very helpful. I have actually used the simpleviewer example you shared, and when I try to deploy that project, I do not get any errors; however, I do not see it in NetSuite, in the list of SPA applications. I am trying this in our Sandbox, and we are not an SDN partner. Can we still use com.netsuite as the publisher ID?
b
Hi @purnagadde, you're welcome. Last week I tried to create another SPA, based on the simpleviewer code base, and I also experienced the same behaviour at another account. The SPA wasn't indeed listed at the SPA page, however it was installed as a suiteapp. I ended up just starting from scratch by using the hello world sample and renaming the necessary directories and files in order to start creating my new SPA
I'll try to check what the issue is and let you know
p
Ah, okay, got it. I have tried the HelloWorld sample today, and it worked. Thank you!
👍 1