Comments (8)
Yes, by submitting this line as a PR to ember-useragent:
importTransforms: require('ember-cli-cjs-transform').importTransforms
We could fix the crash for host apps that don't have ember-cli-cjs-transform installed.
However, that would cause this (apparently harmless) warning:
WARNING: Addon "ember-cli-cjs-transform" is defining a transform name: cjs that is already being defined. Using transform from addon: "ember-cli-cjs-transform".
The alternative is to
- instruct users of ember-useragent to install ember-cli-cjs-transform
- automatically install ember-cli-cjs-transform during the installation of ember-useragent
tbh I'm just eagerly awaiting embroider-build/ember-auto-import#119 so that we can use it instead of the CJS transform.
from ember-useragent.
What platform are you on?
from ember-useragent.
This is probably a case of: rwjblue/ember-cli-cjs-transform#22
The solution above isn't ideal, since it probably generates these warnings in host apps that already have ember-cli-cjs-transform
themselves as a dependency, but it appears to be a valid fix.
from ember-useragent.
@buschtoens is there anything I can do to bypass this warning? the reference to rwjblue/ember-cli-cjs-transform#22 seems to reference a chance required to this addon, or are you suggesting a PR request?
from ember-useragent.
- automatically install ember-cli-cjs-transform during the installation of ember-useragent
I could implement this as a stop gap until embroider-build/ember-auto-import#119 drops?
from ember-useragent.
@willviles you closed this ticket without providing a clear solution. But I an inferring from the linked ticket #27 that is still open that the "approved" solution is to just install ember-cli-cjs-transform
as a project dependency, is this correct?
Will we still see it auto installed as an ember-useragent
dependency in the future so we don't have to maintain yet another package in our projects?
from ember-useragent.
@lpaulger Correct. Ember UserAgent currently depends upon ember-cli-cjs-transform
being installed in your project. I'm hoping there's a happy path forward with ember-auto-import
very soon. I'll look into it ASAP, but in the meantime PRs are welcomed!
from ember-useragent.
I've created a branch for implementing ember-auto-import
. Try it out:
npm i -D git://github.com/willviles/ember-useragent.git#ember-auto-import
from ember-useragent.
Related Issues (20)
- property 'browser.supportsWebRtc' HOT 1
- Headless Chrome for Acceptance Tests HOT 1
- Error running ember-useragent with fastboot
- isLinux in Firefox 59.0 false for Ubuntu HOT 5
- Tests for Fastboot
- Build error updating to 0.7.0 HOT 6
- Crash on Windows HOT 4
- Template helper proposal HOT 1
- Could not find module `ua-parser-js` HOT 9
- Use ember-auto-import HOT 6
- Deprecation: computed-property.override in _parser computed property HOT 4
- iPadOS HOT 2
- Pre-render for Fastboot and User Agent HOT 1
- Remove automatic injections HOT 6
- Update ua-parser dep to 0.7.30 to fix error TypeError: arr[i].toUpperCase is not a function HOT 2
- Any plans on 1.0 release?
- Ember 4 compatibility HOT 2
- Not possible to install on Windows HOT 3
- Fix memory leak 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 ember-useragent.