a17t icon indicating copy to clipboard operation
a17t copied to clipboard

a17t not found by Tailwind when pinned

Open wdiechmann opened this issue 1 year ago • 0 comments

I kind'a stumbled on your project - and liked it instantly 😀

Now I'm moving a project from Sprockets, npm/yarn, to Propshaft, importmap - and I find myself not being able to get "a17t" imported correctly 😢

I know this probably has nothing whatsoever with a17t to do - and that I'm totally barking up the wrong tree, but perhaps you've bumped your toe on this one too 🥸

# config/tailwind.config.js
module.exports = {
  plugins: [
    require("a17t")
  ]
}

# config/importmap.rb
pin "tailwindcss/plugin", to: "tailwindcss--plugin.js" # @3.4.3
pin "a17t" # @0.10.1

I checked - and both libs are sitting safely tucked in my vendor/javascript folder

then I did my incantations - dev - with this unexpected output

13:59:47 css.1  | 
13:59:47 css.1  | Rebuilding...
13:59:47 css.1  | Error: Cannot find module 'a17t'
13:59:47 css.1  | Require stack:
13:59:47 css.1  | - /Users/walther/Deling/Walther/src/mortimer/redbox/bellis/config/tailwind.config.js
13:59:47 css.1  |     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
13:59:47 css.1  |     at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46)
13:59:47 css.1  |     at Function.resolve (node:internal/modules/cjs/helpers:108:19)
13:59:47 css.1  |     at Function.resolve (/snapshot/tailwindcss/standalone-cli/patch-require.js:34:38)
13:59:47 css.1  |     at _resolve (/snapshot/tailwindcss/node_modules/jiti/dist/jiti.js:1:251148)
13:59:47 css.1  |     at jiti (/snapshot/tailwindcss/node_modules/jiti/dist/jiti.js:1:253746)
13:59:47 css.1  |     at /Users/walther/Deling/Walther/src/mortimer/redbox/bellis/config/tailwind.config.js:91:5
13:59:47 css.1  |     at evalModule (/snapshot/tailwindcss/node_modules/jiti/dist/jiti.js:1:256443)
13:59:47 css.1  |     at jiti (/snapshot/tailwindcss/node_modules/jiti/dist/jiti.js:1:254371)
13:59:47 css.1  |     at /snapshot/tailwindcss/lib/lib/load-config.js:52:30 {
13:59:47 css.1  |   code: 'MODULE_NOT_FOUND',
13:59:47 css.1  |   requireStack: [
13:59:47 css.1  |     '/Users/walther/Deling/Walther/src/mortimer/redbox/bellis/config/tailwind.config.js'
13:59:47 css.1  |   ]
13:59:47 css.1  | }

What's more unexpected is, however, that the lib a17t does in fact get loaded – when I look into the <head> part of my browser view!

wdiechmann avatar Apr 24 '24 12:04 wdiechmann