Uncaught DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'gjsProject.' exceeded the quota. #4935
Unanswered
alexjoe118
asked this question in
Q&A
Replies: 1 comment
-
Yeah, you have to use IndexedDb plugin to overcome the exceeded quota issue with LocalStorage, follow the usage example and be sure to use the latest grapesjs version |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. Everyone.
I need help urgently. Currently I am developing a not small project using grapesjs.
In my project, user can build his own project including several webpages.
By the way getting growing page size bigger, whenever add any component into a page, following error occured and I couldn't edit and add components anymore.
"Uncaught DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'gjsProject.' exceeded the quota."
So I have already read the article about indexeddb and tried to use that module.
But I don't know exactly and it doesn't work.
I am so frustrated. Please help me. I attached my current builder code.
[artf] Over here.
import React, { Component } from 'react';
import { compose } from 'recompose';
import { BuildContainer, BuildFormContainer, MessagesContainer, DealsContainer, CampaignsContainer } from '@containers';
import BuildModal from '../@common/modals/builder';
import { Button, Icon, Dropdown, Popup, Modal } from 'semantic-ui-react';
import Loader from '../loader';
import grapesjs from 'grapesjs';
import plugin from 'grapesjs-preset-webpage';
import basic from 'grapesjs-blocks-basic';
import forms from 'grapesjs-plugin-forms';
import pgexport from 'grapesjs-plugin-export';
import navbar from 'grapesjs-navbar';
import countdown from 'grapesjs-component-countdown';
import tabs from 'grapesjs-tabs';
import customcode from 'grapesjs-custom-code';
import 'grapesjs/dist/css/grapes.min.css';
import defaultPage from './default';
import './grapes.css';
import './index.scss';
import './default.js';
import history from '../../history';
import { config } from "@services";
import * as htmlToImage from 'html-to-image';
import { indexOf } from "ramda";
const svgNameList = ['text', 'link', 'image', 'video', 'map', 'linkblock', 'quote', 'textsection', 'form', 'input', 'textarea', 'select', 'button', 'label', 'checkbox', 'radio', 'countdown', 'tabs', 'customcode'
];
const panelList = [];
panelList[0] = [];
panelList[1] = ['ti ti-device-desktop', 'ti ti-device-tablet', 'ti ti-device-mobile'];
panelList[2] = ['ti ti-marquee-2', '', 'ti ti-arrows-maximize', 'ti ti-code', '', '', 'ti ti-file-import', 'ti ti-eraser'];
panelList[3] = ['ti ti-pencil', 'ti ti-settings', 'ti ti-layers-subtract', 'ti ti-layout-grid'];
class Builder extends Component {
state = {
editor: {},
pages: [],
preview: true,
selPage: parseInt(localStorage.getItem('page_id')),
zIndex: 4,
show: false,
pindex: 0,
};
}
export default compose(BuildContainer, BuildFormContainer, MessagesContainer, DealsContainer, CampaignsContainer)(Builder);
Beta Was this translation helpful? Give feedback.
All reactions