question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

the importer does not import cmspage and cmsblock like in mage2vuestorefront

See original GitHub issue

Within the scripts/mage2vs.js the import commands for importing cms parts are missing. Let’s add them here, too.

commands from mage2vuestorefront:

node --harmony cli.js blocks
node --harmony cli.js pages

This is the syntax how it could look like, @pkarw is that correct or am I mistaken?

return exec('node', [
  '--harmony',
  'node_modules/mage2vuestorefront/src/cli.js',
  'pages'
], { env: env, shell: true })

return exec('node', [
  '--harmony',
  'node_modules/mage2vuestorefront/src/cli.js',
  'blocks'
], { env: env, shell: true })

As we talked already I would volunteer to fix this issue right away @pkarw, tho it might be that I need a little hands on, about the code.


  • add the commands to the scripts/mage2vs.js
  • update the readme file about it

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pkarwcommented, May 8, 2019

It looks like the right solution. The only thing is that somebody might not have the Snowdogs module installed; in that case we should display a proper error message - and that’s all 😃

0reactions
toh82commented, May 13, 2019

@pkarw new PR is ready. Let me know if the Idea about doing a try catch to be aware of missing extension or problems is okay. Also since I’m not able to run docker on my private machine (not windows pro) this code is not tested. Would be cool if you could run a testcase.

Read more comments on GitHub >

github_iconTop Results From Across the Web

the importer does not import cmspage and cmsblock like in ...
Within the scripts/mage2vs.js the import commands for importing cms parts are missing. Let's add them here, too. commands from ...
Read more >
Error while import Magento2 cms page(HTTP ERROR ...
First of all, connect to magento API via postman and check the cms endpoint actually responds with correct json data. if it does,...
Read more >
How to import and export CMS/Static Blocks to Magento 2
This blog post about importing and exporting static blocks to ... you want to export, in this article, we will be exporting CMS...
Read more >
How to configure Import Export CMS pages? - Mageplaza
In the Import CMS Page section, choose File Type and then click Download Sample File to download the file that you want. Select...
Read more >
Using CMS blocks effectively in Vue Storefront - ITNEXT
CMS blocks are a popular way to enable users to edit elements in their Magento 2 websites from the backend, it requires (almost)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found