sh: line 1: vite: command not found
"scripts": {
"copy:slds": "mkdir -p static/@salesforce-ux/design-system && cp -R node_modules/@salesforce-ux/design-system/assets static/@salesforce-ux/design-system",
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"start": "serve -s dist",
"heroku-postbuild": "npm run build"
},
The above is my package.json scripts section and below is my vite config
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()]
});
Everything is working fine in my local, when I am trying to deploying I am getting the error. The error is very obvious that vite module is missing.
amyegan
September 4, 2024, 2:31pm
2
arupsarkar-sfdc:
sh: line 1: vite: command not found
"scripts": {
"copy:slds": "mkdir -p static/@salesforce-ux/design-system && cp -R node_modules/@salesforce-ux/design-system/assets static/@salesforce-ux/design-system",
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"start": "serve -s dist",
"heroku-postbuild": "npm run build"
},
The above is my package.json scripts section and below is my vite config
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()]
});
Everything is working fine in my local, when I am trying to deploying I am getting the error. The error is very obvious that vite module is missing.
Hi Amy,
All I did was connecting my github repo and started building, after that i created a env variable in vercel NODE_ENV = Production. This is my first project in vercel. Please let me know if I need to configure in my code any special settings.
This is my github repo which you have access.
This website is primarily mean to showcase real time capability of data cloud and personalization
Since I have mentioned all dependencies, devDepencies in my package.json my expectation is build will automatically pick it from there, I do not need to override any of it.
Am I mistaken?
cc @amyegan