Skip to content

Unable to find css file when opening compodium #115

@Jack17432

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?

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