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

[3.2.0] externalize-deps behavior changed from 3.1.8 - unable to import tailwindcss/plugin #10649

Closed
7 tasks done
randName opened this issue Oct 26, 2022 · 1 comment · Fixed by #10683
Closed
7 tasks done
Labels
pending triage regression The issue only appears after a new release

Comments

@randName
Copy link

randName commented Oct 26, 2022

Describe the bug

In v3.1.8 this worked.

// vite.config.ts
import plugin from 'tailwindcss/plugin'

It is currently failing. Have verified that in the reproduction, if the vite version is set to "3.1.8" instead of "^3.1.8" it will not throw the error.

Update: have checked that this is also present on 3.2.0-beta.0 (using the same reproduction)

Reproduction

https://stackblitz.com/edit/vitejs-vite-dyzuez

Steps to reproduce

both dev and build fails

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    vite: ^3.1.8 => 3.2.0

Used Package Manager

npm

Logs

✘ [ERROR] [plugin externalize-deps] Cannot find module '/home/projects/vitejs-vite-dyzuez/node_modules/tailwindcss/plugin' imported from /home/projects/vitejs-vite-dyzuez/vite.config.ts

    node_modules/esbuild/lib/main.js:1321:27:
      1321 │         let result = await callback({

Validations

@randName randName changed the title externalize-deps behavior changed from 3.1.8 - unable to import tailwindcss/plugin [3.2.0] externalize-deps behavior changed from 3.1.8 - unable to import tailwindcss/plugin Oct 26, 2022
@bluwy bluwy added the regression The issue only appears after a new release label Oct 26, 2022
@randName
Copy link
Author

thanks, verified that adding .js extension works with 3.2.0 and will try to use that moving forward

@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pending triage regression The issue only appears after a new release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants