Closed rlora closed 1 year ago
https://gitlab.com/rlora
Will provide a reproduction repo if needed. Konsta 1.0.0 is packaging the config files in a nested config folder causing Tailwind build to fail.
1.0.0
config
I fixed the issue based on 0.11.1 structure and performed the following workaround.
0.11.1
$ npm install $ cd node_modules/konsta $ cp config/config/* config/.
npx tailwindcss -i theme/input.css -o src/lib/theme.css Done in 538ms.
npx tailwindcss -i theme/input.css -o src/lib/theme.css Error: Cannot find module './config/config-extend.js' Require stack: - /Users/rolando/Aramcheck/jalasoft/jala-one/traveler/pocs/2022-09-konsta-sveltekit/node_modules/konsta/config.js - /Users/rolando/Aramcheck/jalasoft/jala-one/traveler/pocs/2022-09-konsta-sveltekit/tailwind.config.cjs - /Users/rolando/Aramcheck/jalasoft/jala-one/traveler/pocs/2022-09-konsta-sveltekit/node_modules/tailwindcss/lib/cli.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/Users/rolando/Aramcheck/jalasoft/jala-one/traveler/pocs/2022-09-konsta-sveltekit/node_modules/konsta/config.js:2:22) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) { code: 'MODULE_NOT_FOUND',
macOs
fixed in 1.0.1
Thanks a lot @nolimits4web! Tested 1.0.1 and is working as expected.
This error also occurred in version 3.3.3 using react
Check that this is really a bug
Reproduction link
https://gitlab.com/rlora
Bug description
Will provide a reproduction repo if needed. Konsta
1.0.0
is packaging the config files in a nestedconfig
folder causing Tailwind build to fail.I fixed the issue based on
0.11.1
structure and performed the following workaround.Expected Behavior
Actual Behavior
Konsta UI version
1.0.0
Platform/Target and Browser Versions
macOs
Validations
Would you like to open a PR for this bug?