Comments (11)
Run npm install ladda
. The compiled package with a /dist folder will be put in node_modules/ladda.
from ladda.
I try but I get certificate Error.
from ladda.
Have you tried googling the error to see what might be causing it? It doesn't sound like an issue related to Ladda.
from ladda.
I don't Say it is ladda issue but I want to know that is other Way to get compiled ladda version
from ladda.
I didn't get any error but only css are in /dist folder and no js files
from ladda.
@adonespitogo That's expected. The package is written in standard JavaScript, so these files don't need to be compiled, only bundled. You should be able to import the ES6 module in your project and bundle everything together with Webpack or Rollup.
from ladda.
@theodorejb thanks for the quick response, but time is critical for me. I just downloaded the files from the demo site. Could have much convenient if it was available as a drop-in file without needing ES6 bundler. I'm using gulp
from ladda.
You could also stick with version 1.x if you don't want to use a bundler. I believe that's the version that's still on the demo site.
from ladda.
This is very frustrating. I'm not directing my ire at Ladda specifically, but the trend for not providing deployable scripts is pretty darned irritating. I've avoided grappling with any of this stuff until now - NodeJS, NPM, Grunt, and all of these other names that are opaque to me - because I've managed happily without them and I don't have time to learn yet another package management system right now.
So I fired up a Linux Mint install in a virtual machine, went through installing NodeJS, followed a tutorial online about setting things up, ran all of the various commands, and hit the "SyntaxError: Unexpected token import".
So I go to look on StackOverflow, and it seems that NodeJS "doesn't understand ES6 syntax", and there are messages about adding yet another application called Babel. Except, that's been recent refactored in version 6 and now involved pages of commands to get things working as expected. All I want is one JS file! And not the minified version from the demo because I specifically need to step through the file to location the source of an error I'm encountering, and the single letter function identifiers in the minified version make this excruciatingly painful. Argh.
from ladda.
@sbwMikael I also find it pretty annoying that Node.js doesn't support standard ES6 modules yet. For Ladda you shouldn't need Babel, though, just Rollup or Webpack to create a bundle which will work anywhere.
from ladda.
Thank you, I'll have a look into that
from ladda.
Related Issues (20)
- Spinner not spinning HOT 3
- Where is the "dist" folder? HOT 3
- Downloaded zip version not working HOT 1
- Add bundling hints to the README?
- Please add dist or documentation how to use with webpack bundles!
- Ladda button and validator HOT 1
- #. HOT 1
- Vite Error: ReferenceError: exports is not defined
- Dart Sass complains about usage of / for division in ladda.scss HOT 2
- Update 2.0.3 npm build failure HOT 3
- package.json "type": "module" uses javascript/esm vs javascript/auto
- Unexpected token import HOT 2
- 2.0.x releases don't have `dist` folder HOT 1
- Setting button to disabled in Start() prevents form submission in Chrome HOT 1
- v1.0.6: can't resolve spin.js HOT 1
- parsley novalidate problem HOT 1
- Installing on .Net core ? HOT 1
- Uncaught SyntaxError: Unexpected token import HOT 2
- If you set custom padding, it will broke the button. HOT 1
- Where's the dist folder? HOT 1
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 ladda.