Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a17t not found by Tailwind when pinned #34

Open
wdiechmann opened this issue Apr 24, 2024 · 0 comments
Open

a17t not found by Tailwind when pinned #34

wdiechmann opened this issue Apr 24, 2024 · 0 comments

Comments

@wdiechmann
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant