You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you use Yarn and try to use smui-theme it'll error like so:
Compiling SMUI Styles...
/home/name/repoPath/.pnp.cjs:11831
Error.captureStackTrace(firstError);
^
Error: smui-theme tried to access @material/dom, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: @material/dom (via "@material/dom/package.json")
Required by: smui-theme@npm:7.0.0-beta.15 (via /home/name/.yarn/berry/cache/smui-theme-npm-7.0.0-beta.15-72073d0652-10c0.zip/node_modules/smui-theme/bin/)
Require stack:
- /home/name/.yarn/berry/cache/smui-theme-npm-7.0.0-beta.15-72073d0652-10c0.zip/node_modules/smui-theme/bin/index.js
- /home/name/.yarn/berry/cache/smui-theme-npm-7.0.0-beta.15-72073d0652-10c0.zip/node_modules/smui-theme/smui-theme
at require$$0.Module._resolveFilename (/home/name/repoPath/.pnp.cjs:11831:13)
at Function.resolve (node:internal/modules/helpers:118:19)
at Object.handler (/home/name/.yarn/berry/cache/smui-theme-npm-7.0.0-beta.15-72073d0652-10c0.zip/node_modules/smui-theme/bin/index.js:62:34)
at /home/name/.yarn/berry/cache/yargs-npm-17.7.2-80b62638e1-10c0.zip/node_modules/yargs/build/index.cjs:1:8993
at j (/home/name/.yarn/berry/cache/yargs-npm-17.7.2-80b62638e1-10c0.zip/node_modules/yargs/build/index.cjs:1:4956)
at _.handleValidationAndGetResult (/home/name/.yarn/berry/cache/yargs-npm-17.7.2-80b62638e1-10c0.zip/node_modules/yargs/build/index.cjs:1:8962)
at _.applyMiddlewareAndGetResult (/home/name/.yarn/berry/cache/yargs-npm-17.7.2-80b62638e1-10c0.zip/node_modules/yargs/build/index.cjs:1:9604)
at _.runCommand (/home/name/.yarn/berry/cache/yargs-npm-17.7.2-80b62638e1-10c0.zip/node_modules/yargs/build/index.cjs:1:7231)
at [runYargsParserAndExecuteCommands] (/home/name/.yarn/berry/cache/yargs-npm-17.7.2-80b62638e1-10c0.zip/node_modules/yargs/build/index.cjs:1:58539)
at te.parse (/home/name/.yarn/berry/cache/yargs-npm-17.7.2-80b62638e1-10c0.zip/node_modules/yargs/build/index.cjs:1:40478)
Node.js v19.4.0
Because @material/dom isn't declared as a dependency. I'd be completely willing to put in a PR to fix this but I'm filing an issue in case there's something I'm missing about how the package is supposed to work. It seems like even once this dependency issue is fixed there's another one right after.
To Reproduce
Steps to reproduce the behavior:
Create a new folder and open a terminal in it.
Run yarn init (you can leave the defaults).
Run yarn add -D smui-theme
Run mkdir static
Run yarn run smui-theme compile static/smui.css -i src/theme
This issue of course persists in a more completely set up project with an actual theme in src/theme etc.
Expected behavior
For the command not to error.
The text was updated successfully, but these errors were encountered:
Describe the bug
If you use Yarn and try to use smui-theme it'll error like so:
This leads back to this line:
svelte-material-ui/packages/smui-theme/bin/index.js
Line 62 in b16385c
Because
@material/dom
isn't declared as a dependency. I'd be completely willing to put in a PR to fix this but I'm filing an issue in case there's something I'm missing about how the package is supposed to work. It seems like even once this dependency issue is fixed there's another one right after.To Reproduce
Steps to reproduce the behavior:
yarn init
(you can leave the defaults).yarn add -D smui-theme
mkdir static
yarn run smui-theme compile static/smui.css -i src/theme
This issue of course persists in a more completely set up project with an actual theme in
src/theme
etc.Expected behavior
For the command not to error.
The text was updated successfully, but these errors were encountered: