Comments (5)
This happens in my application before jQuery is loaded in an older branch (under production) with some code like var contextRoot = Routes.root_path()
. We don't have this in the master branch anymore and unfortunately jQuery is loaded from a Grails application using some integration helpers (we could finally get rid of Grails recently in master, but the old branch still depends on it) so it's not easy for us to apply an hack to include jQuery before js-routes since the integration helper will include all JS, not only jQuery and the other JS depend on js-routes... For now, I'll simply fix var contextRoot = '/'
, but maybe you'll want to fix this use case in js-routes itself at some point...
from js-routes.
@rosenfeld Can you try this fix? https://github.com/le0pard/js-routes Just add in gemfile:
gem 'js-routes', github: 'le0pard/js-routes'
Because I don't have IE. If it will help - will be in pull request.
from js-routes.
Yes, it works, thank you :)
from js-routes.
Closed by #95
from js-routes.
Thank you
from js-routes.
Related Issues (20)
- TypeError: Cannot set property 'NameSpace' of undefined at version 2.0.7 HOT 2
- Don't know how to build task 'js:routes' HOT 9
- Typescript doesn't resolve properly the dynamic routes module HOT 5
- No default export in Typescript definitions file HOT 2
- Automatic updates via rack middleware HOT 5
- Prefer default_url_options over implictly filling with params when passing options hash HOT 2
- module_type: nil causes "NIL is not supported by runtime" HOT 4
- Thoughts for using with webpacker within a Rails engine HOT 2
- Task not found in Rails 7 app HOT 9
- Custom output path HOT 8
- Custom output path HOT 2
- module_type: nil causes "NIL is not supported by runtime" HOT 8
- NameError: uninitialized constant JsRoutes::JsRoute HOT 6
- function to get all paths to do custom filtering and selecting? HOT 3
- Error: Cannot read config file: while running yarn lint HOT 3
- Upgrade `rake assets:precompile` to `update js-routes` files in Rakefile did not work for me HOT 13
- ESM Tree shaking not working because __jsr.r() is potentially impure HOT 3
- Use configured Webpacker directory instead of default
- Options style route params HOT 8
- Emoji caused URIError: URI malformed 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 js-routes.