Comments (3)
Ok, update from my end.
I believe this library to be inlining the SVG into a file at build time, then looking the SVG up by path during runtime.
On development builds everything works fine because the path in the template and the path in the built file are the same. Issues arise when you have paths changing, in my case, and I believe in @timiyay case above, we are using asset fingerprinting. The fingerprinting runs before the inline-ing, so the path it uses to lookup the file and the path it used to inline the svg into JS are different.
I was able to solve this issue by ignoring the inlined svg's from my fingerprinting.
module.exports = function(defaults) {
const app = new EmberApp(defaults, {
fingerprint: {
// ...
exclude: ['assets/images/my-inlined-svg.svg'],
extensions: ['js', 'css', 'png', 'jpg', 'gif', 'map', 'svg', 'ttf', 'woff'],
// ...
},
More info on ember-cli asset fingerprinting:
https://ember-cli.com/asset-compilation#fingerprinting-and-cdn-urls
from ember-inline-svg.
I am having an identical issue,
this library throws:
Assertion Failed: No SVG found for ***
But when I visit that URL the svg is displayed correctly.
@rlivsey Can you chime in and let us know next steps here? Maybe explain how this works under the hood so we can help debug it.
from ember-inline-svg.
Closing this issue as stale.
from ember-inline-svg.
Related Issues (20)
- Option to pass styles through the `style` attribute HOT 4
- Babel Deoptimization HOT 1
- Feature Request: Co-locate SVGs within pods HOT 2
- Passing a class to the inline-svg helper overwrites existing classes on the SVG element HOT 1
- Cannot read property 'filter' of undefined
- Fails to find SVG's imported with ember-cli-node-assets addon
- Silently fails with fingerprinted SVGs HOT 4
- Pull from Absolute Path
- Option to receive an action
- Deprecation Warning when updating to ember 2.18.2
- Update SVGO HOT 2
- Would like an option to override the default JS outputFile (currently, 'svgs.js')
- High and Moderate security issues found in yarn audit HOT 1
- Huge number of security issues found in ember-inline-svg HOT 1
- Why is viewBox property removed from svg file? HOT 1
- Convert to component? HOT 2
- SVGs should be bundled to vendor.js instead of app.js
- htmlSafe import is causing error in production build HOT 2
- Upgrade Ember.js tracking plan
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 ember-inline-svg.