You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Stouch,
I've noticed a bug upon launching npx directus-extensions build :
❯ npx directus-extension build
✖ Failed
[CssSyntaxError] /home/aristide/code/directus-interface-uuid-file-image/src/interface.vue:28:6: Unknown word (plugin vite:vue)
/home/aristide/code/directus-interface-uuid-file-image/src/interface.vue:333:6
CssSyntaxError: /home/aristide/code/directus-interface-uuid-file-image/src/interface.vue:28:6: Unknown word
at Input.error (/home/aristide/code/directus-interface-uuid-file-image/node_modules/postcss/lib/input.js:106:16)
at Parser.unknownWord (/home/aristide/code/directus-interface-uuid-file-image/node_modules/postcss/lib/parser.js:587:22)
at Parser.decl (/home/aristide/code/directus-interface-uuid-file-image/node_modules/postcss/lib/parser.js:232:16)
at Parser.other (/home/aristide/code/directus-interface-uuid-file-image/node_modules/postcss/lib/parser.js:393:18)
at Parser.parse (/home/aristide/code/directus-interface-uuid-file-image/node_modules/postcss/lib/parser.js:464:16)
at parse (/home/aristide/code/directus-interface-uuid-file-image/node_modules/postcss/lib/parse.js:11:12)
at new LazyResult (/home/aristide/code/directus-interface-uuid-file-image/node_modules/postcss/lib/lazy-result.js:133:16)
at Processor.process (/home/aristide/code/directus-interface-uuid-file-image/node_modules/postcss/lib/processor.js:53:14)
at doCompileStyle (/home/aristide/code/directus-interface-uuid-file-image/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:15503:36)
at Object.compileStyleAsync (/home/aristide/code/directus-interface-uuid-file-image/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:15423:10)
I've updated all packages to last version in package.json :
Also applied the fix from the other issue #1, about get-root-path.ts.
The postinstall script was running in circle, and couldn't create the "directus" folder.
It seems the SCSS processor isn't included in the project by default, causing the error upon building.
FIX
A simple fix is to use a SCSS to CSS converter, and replace the style tag content and lang attribute :
Hello Stouch,
I've noticed a bug upon launching
npx directus-extensions build
:I've updated all packages to last version in
package.json
:Also applied the fix from the other issue #1, about
get-root-path.ts
.The postinstall script was running in circle, and couldn't create the "directus" folder.
It seems the SCSS processor isn't included in the project by default, causing the error upon building.
FIX
A simple fix is to use a SCSS to CSS converter, and replace the style tag content and
lang
attribute :I was then able to build with success ;)
Also, as I couldn't find any
index.js
as release, I thought some of yall might like it :The text was updated successfully, but these errors were encountered: