ERROR while deploying to vercel
Unanswered
Cuvier’s Dwarf Caiman posted this in #help-forum
Cuvier’s Dwarf CaimanOP
I am building a nextjs e-commerce app. It works perfectly in my local environment and there are 0 errors in the console but when i deploy the app it throws errors which i dont even understand. I have attached the full error. Below is store.js code and pls fell free to ask to add any required code snippit: import { createSlice } from "@reduxjs/toolkit";
const cartSlice = createSlice({
name: "cart",
initialState: [],
reducers: {
addToCart: (state, action) => {
state.push(action.payload);
},
},
});
export const { addToCart } = cartSlice.actions;
export default cartSlice.reducer;
const cartSlice = createSlice({
name: "cart",
initialState: [],
reducers: {
addToCart: (state, action) => {
state.push(action.payload);
},
},
});
export const { addToCart } = cartSlice.actions;
export default cartSlice.reducer;