I was trying to make a custom snippet using vscode, but whenever I add code with few lines, it throws error like

Here is the custom snippet I was trying to add
"Import createApi and fetch base query": {
"scope": "javascript, typescript",
"prefix": "importcrapiandfetch",
"body": [
"import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
export const fetcherApi = createApi({
reducerPath: 'fetcherApi',
baseQuery: fetchBaseQuery({
baseUrl: '',
credentials: 'include',
}),
tagTypes: [''],
endpoints(build) {
return {
post: build.mutation({
query: (body) => ({ url: '', method: 'post', body})
}),put: build.mutation({
query: ({ id, values}) => ({
url: '',
method: 'put',
body: values,
})
}),
get: build.query({
query: () => ({ url: '' })
}),
};
},
});
export const {
} = fetcherApi;"
],
"description": "Fetcher api for fetching data"
}```