Unable to build on linux
See original GitHub issueUnable to build with 4.1.2
whenever I try to make release or make dev (all), I get these errors:
I followed the instructions in here https://m.conversejs.org/docs/html/development.html
When I ran npm install, the directory headless was empty, so I had to run:
npm install -save-dev @converse/headless
which got rid of the headless related errors, and now I get these errors:
`ERROR in ./node_modules/@converse/headless/templates/field.html 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type.
<field var="{{{o.name}}}">
| {[ if (o.value.constructor === Array) { ]} | {[ o.value.forEach(function (arrayValue) { ]}<value>{{{arrayValue}}}</value>{[ }); ]} @ ./node_modules/@converse/headless/utils/form.js 10:0-48 30:8-17 @ ./src/converse-register.js @ ./src/converse.js
ERROR in ./node_modules/@converse/headless/templates/vcard.html 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type.
<vCard xmlns="vcard-temp">
| <FN>{{{o.fn}}}</FN> | <NICKNAME>{{{o.nickname}}}</NICKNAME> @ ./node_modules/@converse/headless/converse-vcard.js 9:0-47 98:49-58 @ ./src/converse.js `
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Thanks JCBrand for the prompt reply, and the excellent software, with organized code, and great plugin structure. It helps a lot in organizing the code, and isolating devlopers work from the main plugin. Hope that this turns to an industry standard. I tried the make clean && make dist , yes, it got the @converse/headless however. I get this error:
ERROR in ./node_modules/@converse/headless/templates/field.html 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type.
| {[ if (o.value.constructor === Array) { ]} | {[ o.value.forEach(function (arrayValue) { ]}<value>{{{arrayValue}}}</value>{[ }); ]} @ ./node_modules/@converse/headless/utils/form.js 10:0-48 30:8-17 @ ./src/converse-register.js @ ./src/converse.js
ERROR in ./node_modules/@converse/headless/templates/vcard.html 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type.
| <FN>{{{o.fn}}}</FN> | <NICKNAME>{{{o.nickname}}}</NICKNAME> @ ./node_modules/@converse/headless/converse-vcard.js 9:0-47 98:49-58 @ ./src/converse.js
Any ideas?
I think those errors are related to Lerna and
lerna bootstrap --hoist
not being called.Should be fixed by now. Please reopen if you still have the same problem with the latest version in the master branch.