AndyOGo / stylelint-declaration-strict-value

Specify properties for which a variable, function, keyword or value must be used.
MIT License
134 stars 10 forks source link

fix: error [ERR_MODULE_NOT_FOUND]: Cannot find module 'shortcss/lib/l… #330

Closed AndyOGo closed 10 months ago

AndyOGo commented 10 months ago

fixes #327

Moved shortcss and css-values to devDependencies to include them within the bundle (microbundle inject devDependencies) https://github.com/developit/microbundle/issues/633#issuecomment-1207138431

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'shortcss/lib/list' imported from stylelint-declaration-strict-value/dist/index.modern.mjs
Did you mean to import shortcss/lib/list.js?
    at finalizeResolution (node:internal/modules/esm/resolve:255:11)
    at moduleResolve (node:internal/modules/esm/resolve:908:10)
    at defaultResolve (node:internal/modules/esm/resolve:1121:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36)