8000 Unable to find css file when opening compodium · Issue #115 · romhml/compodium · GitHub
[go: up one dir, main page]

Skip to content

Unable to find css file when opening compodium #115

Open

Description

@Jack17432
 [vite] Internal server error: Failed to resolve import "C:Users_OneDriveDesktop_src//styles/main.css" from "@compodium/renderer.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: @compodium/renderer.ts:2:9
  1  |  import CompodiumRoot from 'C:/Users/_/OneDrive/Desktop/_/node_modules/@compodium/core/dist/runtime/root.vue';
  2  |  import 'C:\Users\_\OneDrive\Desktop\_\src//styles/main.css';
     |          ^
  3  |
  4  |  import {createApp} from "vue";
      at TransformPluginContext._formatLog (file:///C:/Users/_/OneDrive/Desktop/_/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:42499:41)
      at TransformPluginContext.error (file:///C:/Users/_/OneDrive/Desktop/_/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:42496:16)
      at normalizeUrl (file:///C:/Users/_/OneDrive/Desktop/_/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:40475:23)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async file:///C:/Users/_/OneDrive/Desktop/_/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:40594:37
      at async Promise.all (index 1)
      at async TransformPluginContext.transform (file:///C:/Users/_/OneDrive/Desktop/_/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:40521:7)
      at async file:///C:/Users/_/OneDrive/Desktop/_/node_modules/vite-plugin-inspect/dist/shared/vite-plugin-inspect.BzUKaD4x.mjs:403:17
      at async EnvironmentPluginContainer.transform (file:///C:/Users/_/OneDrive/Desktop/_/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:42294:18)
      at async loadAndTransform (file:///C:/Users/_/OneDrive/Desktop/_/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:35735:27)

I am using vue (without nuxt) and I get this issue when trying to open the __compodium__/devtools/components route. I have followed the instructions, and I know it can find the CSS since it applies to rules to the rest of the app, it only breaks when I open/have Compodium.

Do I need to add my styles / CSS files to a config somewhere?

Activity

  1. romhml commented on Aug 21, 2025

    @romhml
    Owner

    This looks like a compatibility issue with windows. I don't own a windows machine but I'll try to look into it!

  2. dotmot commented on Sep 30, 2025

    @dotmot

    This looks like a compatibility issue with windows. I don't own a windows machine but I'll try to look into it!

    Hello, I'm having the same issue in a windows machine, are you planning in supporting windows?

  3. romhml commented on Sep 30, 2025

    @romhml
    Owner

    Yes, I'm working on other features as of now but I'm planning on looking into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0