Hi Everyone,
I encountered an issue while creating a new component for SplunkUI. I have followed the documentation tutorial https://splunkui.splunk.com/Packages/create/CreatingSplunkApps as well as the writings from others here https://blog.scrt.ch/2023/01/03/getting-started-with-splunkui/ but I am facing an error as shown in the image below.
My Setup :
node -v v18.19.1
npm -v 9.2.0
npx yarn -v 1.22.22
Fix the yarn version, install yarn correctly
sudo npm install -g yarn@1.22.19
Fix the yarn version, install yarn correctly
sudo npm install -g yarn@1.22.19
Hi @zksvc
I believe you were meant to run "yarn run setup" (missing the "run") at this point.
You might need to run "yarn install" first.
This page is a great first-run tutorial on using @splunk/create too https://splunkui.splunk.com/Toolkits/SUIT/ComponentTutorial
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
Hi @livehybrid
Thanks for your reply, when i try to type "yarn run setup" i got error like this.
What yarn version you use btw ?
Hi @zksvc
I'm on 1.22.19
If you're on 2+ there might be a conflict with the pnp nodeLinker (which I think is default) - so if you're on 2.x you could try creating a .yarnrc.yml file in the project root with:
nodeLinker: node-modules
Out of interest, does this work?
yarn lerna run build
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
My bad, the solution is insatll yarn correctly. my yarn is wrong installation
Thats great, I'm glad you managed to get it resolved.
If my previous reply helped at all then please consider adding karma to the reply.
Thanks
Of course @livehybrid Thanks for your comment
Sorry i was typo, but it still don't work