appinteractive/electron-vite-tailwind-starter

Cannot find module 'tainwindcss/resolveConfig'

bato3 opened this issue · 6 comments

bato3 commented

I'm trying run on windows 10.

npx degit appinteractive/electron-vite-tailwind-starter  m --force
cd m
yarn install
yarn build
 .\build\win-unpacked\electron-vite-tailwind-starter.exe

image

Did you run yarn install? If it does not work with degit, just use GitHub to create a fresh project from this as it is a template already so no history (to my knowledge) attached!

bato3 commented

The install was done. (I don't know why I want to type init all the time ...)

Now as I look at the messages, it makes me wonder this entry:

transforming (11) ..\..\node_modules\@vue\reactivity\dist\reactivity.esm-bundler.jspostcss-functions: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration

full log:

PS C:\Users\MY-User> git clone git@github.com:bato3/electron-vite-tailwind-starter.git
Cloning into 'electron-vite-tailwind-starter'...
remote: Enumerating objects: 42, done.
remote: Counting objects: 100% (42/42), done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 42 (delta 0), reused 34 (delta 0), pack-reused 0
Receiving objects: 100% (42/42), 151.14 KiB | 943.00 KiB/s, done.
PS C:\Users\MY-User> cd .\electron-vite-tailwind-starter\
PS C:\Users\MY-User\electron-vite-tailwind-starter> yarn install
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info dmg-license@1.0.8: The platform "win32" is incompatible with this module.
info "dmg-license@1.0.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info "iconv-corefoundation@1.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ install-app-deps
  • please use as subcommand: electron-builder install-app-deps
  • electron-builder  version=22.10.5
  • loaded configuration  file=package.json ("build" field)
Done in 9.09s.
PS C:\Users\MY-User\electron-vite-tailwind-starter> yarn build
yarn run v1.22.10
$ run-s build:*
$ vite build --base=./
vite v2.2.4 building for production...
transforming (11) ..\..\node_modules\@vue\reactivity\dist\reactivity.esm-bundler.jspostcss-functions: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration

warn - You have enabled the JIT engine which is currently in preview.
warn - Preview features are not covered by semver, may introduce breaking changes, and can change at any time.
✓ 12 modules transformed.
dist/index.html                  0.62kb
dist/assets/index.3367d312.js    1.28kb / brotli: 0.64kb
dist/assets/index.c12eae96.css   44.66kb / brotli: 7.29kb
dist/assets/vendor.82baae14.js   48.21kb / brotli: 17.23kb
  • electron-builder  version=22.10.5 os=10.0.19043
  • loaded configuration  file=package.json ("build" field)
  • description is missed in the package.json  appPackageFile=C:\Users\MY-User\electron-vite-tailwind-starter\package.json
  • writing effective config  file=build\builder-effective-config.yaml
  • packaging       platform=win32 arch=x64 electron=12.0.6 appOutDir=build\win-unpacked
  • Unpacking electron zip  zipPath=undefined
  • default Electron icon is used  reason=application icon is not set
  • building        target=nsis file=build\electron-vite-tailwind-starter Setup 0.7.0.exe archs=x64 oneClick=true perMachine=false
  • building block map  blockMapFile=build\electron-vite-tailwind-starter Setup 0.7.0.exe.blockmap
Done in 29.54s.

I have somewhat similar experience, in my case the built binary is complaining that the jsonfile module is missing:

image

Interestingly the npm run dev is working perfectly, only the packaging/built binary has this issue

bato3 commented

Interestingly the npm run dev is working perfectly, only the packaging/built binary has this issue

the same

Couple times I try with clean start, and always I have this same error

Thats frustrating indeed. I do not have a Windows Maschine at hand but I will try to upgrade the packages, maybe that might help.

I changed tailwindcss dependency from "devDependencies" to "dependencies" and it worked