Errors when trying to import SOLID
AronBuzogany opened this issue · comments
Environment
npm version 9.7.2
Imported in package.json as: "@solid/community-server": "^6.0.1"
Description
I am trying to use the vocabulary in SOLID
(SOLID.oidcIssuer
to be precise), but when I try to import this object as:
import { SOLID } from "@solid/community-server";
I get the following errors.
Seeing the repeated webpack error makes me think you are trying to convert the server code using webpack in your build process which causes everything to go wrong.
Seeing the repeated webpack error makes me think you are trying to convert the server code using webpack in your build process which causes everything to go wrong.
I am using the react template which handles the webpack in node_modules/react-scripts
Once you resolve your problem, I would suggest you check your bundles with https://chrisbateman.github.io/webpack-visualizer/
I saw a project which was importing just a few things from CSS, namespaces, and some helpers, and it ended up with an 11MB bundle that included nodemailer, the whole communica, and a lot of other stuff you wouldn't want in your frontend app.
It might be related to limitations on tree shaking with CommonJS modules. Possibly that 11MB bundle and other bundles importing from CSS could be optimized. I think one should always check their sizes first and bundle visualization tools come very useful.
Closing as this is not a CSS issue, and the linked issue seems to be resolved.