Comments (4)
Thanks @jerch for the PR. Let me know if the fix causes any issues. I also added the package.json
export. I'll release a new version as soon as I add a note in the docs for this.
from svelte-material-ui.
When I migrated my SvelteKit app from version 1 to 2, I had this warning too and my app did not build anymore. I had the error :
> Using @sveltejs/adapter-node
error during build:
RollupError: Expression expected
at getRollupEror (file:///.../website-app/node_modules/rollup/dist/es/shared/parseAst.js:375:41)
at ParseError.initialise (file:///.../website-app/node_modules/rollup/dist/es/shared/node-entry.js:11155:28)
at convertNode (file:///.../website-app/node_modules/rollup/dist/es/shared/node-entry.js:12895:10)
at convertProgram (file:///.../website-app/node_modules/rollup/dist/es/shared/node-entry.js:12215:12)
at Module.setSource (file:///.../website-app/node_modules/rollup/dist/es/shared/node-entry.js:14039:24)
at async ModuleLoader.addModuleSource (file:///.../website-app/node_modules/rollup/dist/es/shared/node-entry.js:18697:13)
When I debug the build, this error occurs when parsing the SMUI components Card and Slider. Components I use in my app.
If I add the export like describe by @ruckc in these 2 components package.json, I still have some warning on other components, but the application build and run correctly :
"exports": {
".": {
"svelte": "./dist/index.js"
}
}
from svelte-material-ui.
The fix is here:
https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition
This needs to be added to all package.json files. We need this now to prevent the annoying logs and in the future they will not support the old syntax anymore
from svelte-material-ui.
Created PR #649, which fixes this issue for the demo site.
from svelte-material-ui.
Related Issues (20)
- make docs on how to use typography clearer
- Unable to dynamically set Select field to invalid HOT 2
- [Text Field] The specified value "NaN" cannot be parsed, or is out of range.
- Select menu component cannot be tested using testing-library
- Yarn support with Smui-Theme
- `Error: Package path ./internal is not exported` in smui v7 HOT 23
- Panel with variant="outlined" Restricts Nested Dialogs to Panel Size
- Form elements should have name property
- Expose cursor position index on click of TextField
- Question/bug: HTML prop minlength doesn't work in SMUI Textfield component
- Error: Tried to dipatch event without element
- get_current_component not compatible with svelte 5 HOT 3
- Update event system to use event callbacks like onclick. HOT 1
- Get everything working in non-runes mode.
- Change slots to @render calls (snippets).
- notifyClose does not check element's type
- Tailwind Incompatiblity: Textfield/Select outline variant bugs visually
- <Textfield/> does not handle input$readOnly attribute correctly.
- Autocomplete does not respect style="width: 100%" or required, like Select
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-material-ui.