Skip to content

new env handling seems to break tailwindcss #5747

@benjaminlewandowski

Description

@benjaminlewandowski

Describe the bug

while @tailwind base is in my app.css i get this error:

Error: Cannot import $env/dynamic/private.js into client-side code:
- src/routes/__layout.svelte 
  - src/routes/app.css 
    - $env/dynamic/private.js 

basicly the same error as #5720

Reproduction

https://github.com/benjaminlewandowski/sveltekit-tailwindcss-bugreport

Logs

No response

System Info

System:
    OS: Linux 5.18 Fedora Linux 36 (Workstation Edition)
    CPU: (16) x64 Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
    Memory: 12.38 GB / 31.04 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 18.6.0 - /run/user/1000/fnm_multishells/288221_1659039694408/bin/node
    Yarn: 1.22.19 - ~/.npm-global/bin/yarn
    npm: 8.13.2 - /run/user/1000/fnm_multishells/288221_1659039694408/bin/npm
  Browsers:
    Brave Browser: 103.1.41.100
    Chrome: 103.0.5060.134
    Firefox: 102.0
  npmPackages:
    @sveltejs/adapter-auto: 1.0.0-next.64 => 1.0.0-next.64 
    @sveltejs/kit: 1.0.0-next.396 => 1.0.0-next.396 
    svelte: 3.49.0 => 3.49.0 
    vite: 3.0.3 => 3.0.3

Severity

blocking an upgrade

Additional Information

demo repo is a minimal setup with that error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp1-importantSvelteKit cannot be used by a large number of people, basic functionality is missing, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions