Comments (3)
The problem is caused by this line:
<meta name="xel-theme" content="node_modules/xel/themes/adwaita.css">
Are you sure that the path node_modules/xel/themes/adwaita.css
is actually accessible? Please also try moving <script src="node_modules/xel/xel.js" type="module"></script>
below all <meta>
tags.
from xel.
Yes, you are literally right about this. It is the path issue that caused these errors.
But there are some problems that confused me a lot.
I moved the line <script src="node_modules/xel/xel.js" type="module"></script>
below all <meta>
tags. It still won't work.
After I did following steps below, I found something so weird.
Solution1
The css is applied in the page properly. But the warnings still exsit.
Solution2
The css is applied in the page properly as well. But the warnings still exsit.
Warnings
[Vue warn]: Failed to resolve component: x-icon
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at <BookMarkTable>
at <App>
I guess it might be associated with the compatibility of Vue3. Is there any solution to get rid of these warnings?
What confused me
I have figured it out it is the path problem that caused these errors above. Then, why would some resources, like .svg and .js files be accessible? Why .css files not?
Thanks a lot.
from xel.
I have never used Vue so I'm afraid I can't help you to get rid of these warnings. You seem to be using some preprocessor to compile main.js, but I have no idea what logic is used to resolve relative URLs.
from xel.
Related Issues (20)
- please fix relative import paths HOT 1
- package.js doesn't process theme files / iconsets on Windows.
- Typescript support? HOT 1
- x-tagsinput leaves a trailing comma. HOT 1
- Deprecate global "size" setting HOT 1
- Popover API migration
- CSS Anchor Positioning API migration
- <x-input> Width HOT 1
- Can animation be disabled on elements? HOT 4
- No support for scrolling? HOT 5
- Popovers in <x-buttons> don't close HOT 2
- <x-tab> disabled prop does not work HOT 1
- <x-tooltip> does not work with <x-menuitem> HOT 4
- Some <x-colorselect> events don't work HOT 2
- <x-colorselect> returns selected value in rgb(...) format in some cases HOT 1
- <x-radios> don't have a change event HOT 3
- Support for <x-tooltip> in <x-select>
- "decrement-arrow" has wrong rotation HOT 7
- <x-numberinput> disabled property is not working well
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 xel.