Comments (13)
I didn't manage to get it working even with nuxt@2, so I just use
import { SpringSpinner } from 'epic-spinners/dist/lib/epic-spinners.min.js'
And I added in my main scss file:
@import '~epic-spinners/dist/lib/epic-spinners.min.css';
from epic-spinners.
Still broken, this shouldn't be closed.
from epic-spinners.
Same here, any clue ?
When npm build, i'm getting
ERROR in static/js/0.55e1a31d0eaa216bc664.js from UglifyJs
Unexpected character '`' [./node_modules/epic-spinners/src/services/utils.js:13,0][static/js/0.55e1a31d0eaa216bc664.js:1040,22]
Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
from epic-spinners.
@bmarkovic thanks for submitting the bug! We'll try to fix this thing
from epic-spinners.
@bmarkovic also, what if you try doing import { HalfCircleSpinner } from 'epic-spinners'
instead of importing from minified file?
from epic-spinners.
The error above was actually exactly from such an import line. You could have seen it if you had bothered to look at the Gist :)
There are details in the Gist why this is happening (namely, the "eval" in node.js gets handled the untraspiled ES6). Tldr of it is: your module should export minified ES5 as it's default entry point as generally majority of SPA webpack setups will not be expecting it not to (and that's mostly where the npm module will be used). The minified ES5 should actually work, tho, for that to be useful.
However, when I import from minified there is no error, but no spinner either.
from epic-spinners.
It depends on the version of the Node.js, if you will use stable (10<) - everything will work well.
from epic-spinners.
@Eugenizer Not true. I have just tested in an environment running Node 8.11.3 LTS and it behaves absolutely the same. To reproduce you must:
- Try it with Nuxt
- Trigger server-side rendering by hard-refreshing the page containing the spinner.
from epic-spinners.
Unfortunately, I have the same issue.
from epic-spinners.
This should be solved with nuxt-edge
. I haven't gotten round to testing its. See nuxt.js issue #3485
from epic-spinners.
@bmarkovic with nuxt-edge
works great, thx
from epic-spinners.
I have the same issue.
from epic-spinners.
2020, the same issue with :
"epic-spinners": "^1.1.0",
"nuxt": "^2.13.3",
from epic-spinners.
Related Issues (20)
- Prebuild vue components
- there is an error under ie11 HOT 4
- LoopingRhombusesSpinner is broken
- Register globally? HOT 1
- Can these be used as an overlay to a page? HOT 1
- React Native Epic Spinner port
- ERROR npm build Unexpected character '`' in node_modules/epic-spinners/... HOT 1
- Broken certbot certificate HOT 1
- Incorrect example HOT 1
- Integrate epic-spinner in nuxtjs project HOT 7
- FulfillingSquareSpinner doesn't support the animation duration
- `beforeDestroy` has been renamed to `beforeUnmount`.
- Vue.js 3 HOT 7
- Add vuestic-ui reference and replace images
- Use release script from vuestic-ui
- Work only if component is registered globally
- Epic spinners needs privacy policy
- Update epic-spinners landing
- Add clipboard event to analytics
- Add discord link
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 epic-spinners.