SyntaxError: Unexpected token < in JSON at position 0 in storageManager, contentTypeJson: true,
I have done changes in grapes.js file which is not recommended var typeJson = this.get('contentTypeJson'); var typeJson = false; Resolved issue.
Read full answer below βQuestion
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick SEARCH first, to see if someone else didn't open the same issueDON'T ASK to create examples/code for you, read DOCS and APIs first, then you can post what you have tried (we'd like to see your code) and what you're unable to achieveAll relative statements/questions have to be fil...
Answers (3)
I have done changes in grapes.js file which is not recommended var typeJson = this.get('contentTypeJson'); var typeJson = false;
Resolved issue.
Getting this error ( SyntaxError: Unexpected token < in JSON at position 0 ) when trying to use:- storageManager: { type: 'remote', autosave: false, setStepsBeforeSave: 1, contentTypeJson: true, params: {}, storeComponents: true, storeStyles: true, storeHtml: true, storeCss: true, urlStore: 'http:/...
Can you give more details?
- Your have this error when trying to load template from 'http://localhost/grapesjs/fileLoad.php'?
- Or you have error in init moment. Can you show full initialization of editor?
I think your problem in this endpoint http://localhost/grapesjs/fileLoad.php.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #901
Can we have local and remote storage at the same time.
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #1629
Grapesjs- When i drag and drop the video into the canvas, i want it to be selected on Component Setting right away
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #1637
Need example JSON Response from remote to render template
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #1590
Integration with another template
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins βPremium plugins ship with support, regular updates, and production-ready features β save days of integration work.
Browse premium plugins βRelated tutorials
In-depth guides on the same topic.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.