Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer Quill not working with nodebb v3 #429

Open
cisnerosebastian opened this issue Feb 14, 2024 · 1 comment
Open

Composer Quill not working with nodebb v3 #429

cisnerosebastian opened this issue Feb 14, 2024 · 1 comment

Comments

@cisnerosebastian
Copy link

Is there a plan to update composer quill to work with nodebb v3?

@whuut
Copy link

whuut commented Apr 5, 2024

I support this as well. Since composer-redactor has been abandoned (and also does not work with v3), composer-quill was the only WYSIWYG editor left.

Trying to use it with NodeBB v3.7.3 brings the following error:

npm install nodebb-plugin-composer-quill
./nodebb reset -p nodebb-plugin-composer-default
./nodebb reset -p nodebb-plugin-markdown
./nodebb build

2024-04-05T09:17:45.395Z [5678/139757] - info: [build] Building in parallel mode
2024-04-05T09:17:45.396Z [5678/139757] - info: [build] plugin static dirs build started
2024-04-05T09:17:45.396Z [5678/139757] - info: [build] requirejs modules build started
2024-04-05T09:17:45.396Z [5678/139757] - info: [build] client js bundle build started
2024-04-05T09:17:45.397Z [5678/139757] - info: [build] admin js bundle build started
2024-04-05T09:17:45.397Z [5678/139757] - info: [build] client side styles build started
2024-04-05T09:17:45.397Z [5678/139757] - info: [build] admin control panel styles build started
2024-04-05T09:17:45.397Z [5678/139757] - info: [build] templates build started
2024-04-05T09:17:45.398Z [5678/139757] - info: [build] languages build started
2024-04-05T09:17:45.575Z [5678/139757] - info: [build] plugin static dirs build completed in 0.179sec
2024-04-05T09:17:46.232Z [5678/139757] - info: [build] client js bundle build completed in 0.836sec
2024-04-05T09:17:46.232Z [5678/139757] - info: [build] admin js bundle build completed in 0.835sec
2024-04-05T09:17:46.392Z [5678/139757] - warn: [meta/templates] Partial not loaded: partials/category-selector.tpl
2024-04-05T09:17:46.918Z [5678/139757] - info: [build] requirejs modules build completed in 1.522sec
2024-04-05T09:17:46.919Z [5678/139757] - info: [build] Bundling with Webpack.
2024-04-05T09:17:46.971Z [5678/139757] - info: [build] languages build completed in 1.573sec
[10%] building (3/27 modules)
[10%] building (32/261 modules)
2024-04-05T09:17:49.291Z [5678/139757] - info: [build] admin control panel styles build completed in 3.894sec
332 assets
797 modules

ERROR in ./node_modules/nodebb-plugin-composer-default/static/lib/composer.js
Module not found: Error: Can't resolve 'composer/post-queue' in '/var/lib/nodebb-test/node_modules/nodebb-plugin-composer-default/static/lib'
Did you mean './composer/post-queue'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (build/public/src/modules, build/public/src, node_modules, node_modules/nodebb-theme-persona/> node_modules, node_modules/nodebb-widget-essentials/node_modules, node_modules/nodebb-plugin-emoji/node_modules, node_modules/nodebb-plugin-spam-be-gone/node_modules, node_modules/> nodebb-rewards-essentials/node_modules, node_modules/nodebb-plugin-dbsearch/node_modules, node_modules/nodebb-plugin-emoji-android/node_modules, node_modules/nodebb-plugin-newuser-approval/> node_modules, node_modules/nodebb-plugin-mentions/node_modules, node_modules/nodebb-plugin-composer-quill/node_modules, node_modules/nodebb-plugin-poll/node_modules, node_modules/> nodebb-plugin-composer-default/node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.

ERROR in ./node_modules/nodebb-plugin-composer-default/static/lib/composer/categoryList.js 100:2-111:4
Module not found: Error: Can't resolve 'composer/post-queue' in '/var/lib/nodebb-test/node_modules/nodebb-plugin-composer-default/static/lib/composer'

webpack 5.90.3 compiled with 2 errors in 3944 ms
2024-04-05T09:17:51.373Z [5678/139757] - info: [build] Asset compilation successful. Completed in 5.967sec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants