Skip to content

[Bug] - npm run dev doesnt work #238

Closed
@Mcbencrafter

Description

@Mcbencrafter

What bug did you find in the codebase?

When running npm run dev, i get this error:

error when starting dev server:
TypeError: Cannot read properties of null (reading 'toString')
    at consolidateSnippets (file:///C:/Users/ben/Documents/quicksnip/vite.config.ts.timestamp-1737389347610-d862440f87b4c.mjs:14:14)  
    at configResolved (file:///C:/Users/ben/Documents/quicksnip/vite.config.ts.timestamp-1737389347610-d862440f87b4c.mjs:23:9)        
    at file:///C:/Users/ben/Documents/quicksnip/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66405:67
    at Array.map (<anonymous>)
    at resolveConfig (file:///C:/Users/ben/Documents/quicksnip/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66405:53)
    at async _createServer (file:///C:/Users/ben/Documents/quicksnip/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:62758:18)     
    at async CAC.<anonymous> (file:///C:/Users/ben/Documents/quicksnip/node_modules/vite/dist/node/cli.js:735:20)

I think this happens when the spawnSync command in vite.config.ts fails
Probraply tsx isnt in my path / the path of most people and therefore starting tsx doesnt work

Image

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