Closed jongbelegen closed 8 months ago
Hi, and thanks a lot for using this plug-in!
I’ve updated the module resolution in my tsconfig.json
file to use Node’s module resolution, which should use a more proper resolution strategy (require
) for the output files. Could you check if v1.0.3
of this plug-in solves the issue?
Using v1.0.3
gave me the following error:
failed to load config from **REDACTED**/widget/vite.config.ts
error during build:
file://**REDACTED**/widget/vite.config.ts.timestamp-1699361443861-5b17445049691.mjs:4
import { shadowStyle } from "file://**REDACTED**/widget/node_modules/.pnpm/vite-plugin-shadow-style@1.0.3/node_modules/vite-plugin-shadow-style/dist/plugin.js";
^^^^^^^^^^^
SyntaxError: The requested module 'file://**REDACTED**/widget/node_modules/.pnpm/vite-plugin-shadow-style@1.0.3/node_modules/vite-plugin-shadow-style/dist/plugin.js' does not provide an export named 'shadowStyle'
I'm okay with using commonjs but that only works when you remove:
"type": "module"
I'll make a PR with that fix
Yes, unfortunately I didn’t fix it properly, trying to rush for a solution while traveling. Thank you for contributing a proper fix to this issue!
Thanks for the plugin, it is just what I needed!
When installing the package:
And configuring it:
I'm getting the following error when running the build command:
Adding the extension on all relative import paths seems te resolve the problem.
After reading this issue it seems that we cannot configure this in the typescript transpiler.
env: