collective / Collective

Plone Collective Requests, Questions, Maintenance
http://collective.github.io
123 stars 165 forks source link

[BUG] Frontend crashes when I try to load directly to a page edit URL #1846

Closed tjprescott closed 4 months ago

tjprescott commented 4 months ago

I've been trying to debug an issue where the "Block" tab doesn't show anything when I edit a page. As part of this, the frontend crashed and I needed to restart. I re-ran yarn start and eventually got to where it say it was started on localhost:3000. In the browser, I then tried to reload the URL localhost:3000/news/edit which was where I left off. As soon as I do that, the frontend crashes with the following stack trace:

Cannot find module 'prettier/plugins/html'
Require stack:
- /home/tjprescott/repos/training/frontend/build/server.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Function.Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.prettier/plugins/html (/home/tjprescott/repos/training/frontend/volto-ploneconf/external commonjs "prettier/plugins/html":1:1)
    at __webpack_require__ (/home/tjprescott/repos/training/frontend/build/webpack:/volto-ploneconf/webpack/bootstrap:24:1)
    at fn (/home/tjprescott/repos/training/frontend/build/webpack:/volto-ploneconf/webpack/runtime/hot module replacement:62:1)
    at Function.__webpack_require__.t (/home/tjprescott/repos/training/frontend/build/webpack:/volto-ploneconf/webpack/runtime/create fake namespace object:10:1)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
sswp> !!! Script exited with code 1

Additionally, the edit tabs, which previously showed "Page" and "Block" now show "Document" and "Block". I have to stop and restart the frontend to continue.

jensens commented 4 months ago

This issue tracker is about the collective as a repository and not the place for some addons issues. Please report the issue at the tracker of the add-on.

tjprescott commented 4 months ago

What add-on? This was, AFAIK, the base Plone packages.

jensens commented 4 months ago

Please follow the instructions at https://plone.org/community/bugs If you have any question afterwards do not hesitate to ask. We always appreciate ideas to improve the information.

wesleybl commented 4 months ago

@tjprescott I think the best place for you to report this error is in the Plone frontend repository:

https://github.com/plone/volto