Comments (8)
I'm happy to announce that the latest release v1.3.6 now provides an ES5 version of Highway.
Please give it a try and keep us informed about your issue.
Best regards,
Anthodpnt
from highway.
Hi @wassim,
Highway comes in ES6 and I pretty sure it's not compiled through babel maybe because you are ignoring the node_modules
which result in your code being compiled in ES5 mixed with Highway that remains in ES6.
Please check out the basic-polyfill example that should help you change your configuration in order to include Highway in the compilation process. This is an example using the babel-loader
through Webpack.
This is our will to keep Highway in ES6 but we will consider providing an ES5 version to avoid this kind of repetitive issues 😃. Until then please keep us informed if this solution fixed your issue.
Best regards,
Anthodpnt
from highway.
@wassim The problem don't really come from Highway but from your ESLint configuration that make the compilation fails on errors and that's not a good practice IMO.
If you change the version in order to support latest features of ECMAscript and disable the fail on error option or something you should be able to at least finish your compilation properly...
On our side we are considering an ES5 version of Highway that might come very soon.
from highway.
@Anthodpnt thanks. Indeed I was ignoring the node_modules/@Dogstudio. Now eslint isn't happy 😭
error in ./node_modules/@dogstudio/highway/dist/highway.js
Module build failed:
232 : *
233 : * @return {object} Promise
234 : */
235 : show() {
236 : return new Promise(async resolve => {
^
Unexpected token (236:29)
I saw that you are using eslint as well, are you linting successfully?
from highway.
I don't know how you configured your .eslintrc
file but apparently it doesn't support async/await and returns errors. Maybe you should consider changing the ecmaVersion
to 2018
or checkout the configuration we have for Highway.
from highway.
Couldn't pass through the multiple errors I'm getting. Would love to see a compiled es5 version.
from highway.
Thanks! Working nice now 👌
from highway.
Perfect ! Closing the issue then...
from highway.
Related Issues (20)
- Javascript functions doesn't works on the second time HOT 1
- Locomotive scroll not updating after page transition HOT 3
- I can't get the HIGHWAY.redirect() to work HOT 1
- Updating CSS for incoming page – (Highway maintains the outgoing page's CSS) HOT 5
- data-transition attribute no longer works in 2.2.2 HOT 2
- Update /refresh/bind links dynamically created with javascript HOT 1
- New href with highway HOT 13
- Adding additional headers to page requests
- Add index.d.ts file for better IDE typehinting
- back/forward buttons pressed during transition break the website
- Facebook Pixel Tracking HOT 3
- Fatal error on transition to mismatching URL scheme, while remaining on the same domain
- Can't work with CDN
- Improper use of DOM events
- Highway not working with DOM elements rendered by javascript HOT 1
- H.redirect always refresh page HOT 1
- Help
- H is undefined HOT 1
- Navigation with parameters and anchor not working
- Javascript not working after page transition HOT 2
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 highway.