-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve remaining build warnings #113
Comments
It seems that the 3rd error is related to datatables.net package |
Hi! @LaChope The [2] warning is related to the @kbss-cvut/s-forms package, in the dist folder of this module in s-forms.modern.js this error appears "node_modules/@kbss-cvut/s-forms/dist/s-forms.modern.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.". Options:
|
From this discussion, I think it can be simply ignored (configured so that we don't see this message anymore). |
ok, thanks, I'll try to filter them out via rollup config UPD: it is possible to configure in vite.config.js |
Hi, @blcham, @LaChope. All the errors were either fixed or filtered out from showing, also the [5.1] warning is related to store npm package being used in the dependencies in @kbss-cvut/[email protected] I'll filter this out in vite.config.js and leave a comment in the code referencing this issue |
@blcham |
@blcham The [2] error happens during the tree shaking made by rollup in vite.
Since the wrongly placed annotation is node_modules/@kbss-cvut/s-forms/dist/s-forms.modern.js, then I will try to solve it directly in that package's repo. |
@blcham [5.2] Use of eval in "node_modules/store/plugins/lib/json2.js" is strongly discouraged as it poses security risks and may cause issues with minification The root cause is the "eval" function being used inside node_modules/store/plugins/lib/json2.js. The "store" package is being used inside of @kbss-cvut/s-forms, in one of it's dependencies. So the solution will be to not rely on packages that use eval, or just simply filter out this error. Also eval by itself is not recommended to use in js, due to security issues |
@blcham > It seems that the [3] error is related to datatables.net package
To avoid this warning, we should avoid direct or indirect use of this package. Or I can try to modify that minified css coming from that package separately via postcss, and emit it either as a part of single minified file or as a separate minified css file |
Good job. |
Fix remaining warnings left in here
Note: remaining warnings left after npm run validate are actually build-related. I've also included fixes of runtime errors shown in the browser, I can cherry-pick to a separate branch if needed.
solving in this PR
Warnings:
Error: Module "path" has been externalized for browser compatibility. Cannot access "path.dirname" in client code. vitejs/vite#9200
The text was updated successfully, but these errors were encountered: