Comments (4)
In case it's helpful for someone else able to make a PR, here's a start:
https://github.com/jacobq/ember-paper/tree/fix-1202
Test suite is not passing, but it didn't pass when I tried to build on master
or v1.0.0.-beta.36
either, and I am out of time to spend on this. If you want to do a quick check if it works in your application you can put this in your devDependencies:
"ember-paper": "jacobq/ember-paper#1a041e10733ef5b3878e6fc3b68c023e6a73ad03",
I was able to get it to build with the following selective dependency resolution:
"resolutions": {
"ember-paper/ember-composability-tools": "^1.1.0"
},
Without ember-composability-tools
update I got "this.registerPlugin is not a function"
(at one point I also had "ember-paper/ember-css-transitions": "^3.1.0"
for some reason but didn't need for simple case).
But then Ember.libraries.register('Ember Paper', '1.0.0-beta.36')
caused a runtime error even though it built OK (Tested with ember-source: ~4.7.0
).
Uncaught Error: Could not find module
ember-resolver
imported frometest/app
Annoyingly, the docs still say that Ember.libraries.register(libraryName, libraryVersion);
is OK, but some GitHub searching shows otherwise.
Modifying ember-paper
's index.js
as follows (hacky as it is) corrected that error:
treeForVendor(tree) {
let trees = [];
let versionTree = writeFile(
'ember-paper/register-version.js',
//`Ember.libraries.register('Ember Paper', '${version}');`
`let Ember;
try {
Ember = requireModule('ember')['default'];
} catch {
Ember = window.Ember;
}
Ember?.libraries?.register('Ember Paper', '${version}');`
);
Update: It looks like ember-paper
is relying on ParentMixin
from the older version of ember-composability-tools
being used, but that was removed during octane migration, so there is some breakage that results from this update that still needs to be fixed before things will work right.
from ember-paper.
after ember v3.27.0 (May 3, 2021), registerPlugin / unregisterPlugin
was deprecated. that's the reason why you're getting this error.
you can see in here: https://github.com/emberjs/ember.js/blob/master/CHANGELOG.md
from ember-paper.
How to deal with it
from ember-paper.
emberjs/ember.js#19429 (comment) you can try pinning ember-cli-htmlbars
to the suggested version.
from ember-paper.
Related Issues (20)
- Deprecations when upgrading to Ember >= v3.20.x, {{-in-element}} HOT 1
- Paper select errors when menu is closed on ember > 3.17 HOT 3
- Form elements that accept `required` don't set an A11y attribute on the child element
- PaperSelect with selected=0 HOT 1
- Tab Component lacks accessible role="tab"
- Paper Tabs Pagination Always Visible
- Select ARIA violation around not having an accessible name
- paper-menu.item.shouldRenderButton doesn't handle the case when click handler is installed differently HOT 2
- Paper chips component throws an 'focus' error with readOnly property as true
- paper-chips inside paper-form: form is sent and closed when adding new tag (press Enter)
- error when building app with ember-paper HOT 8
- Ghost basic-dropdown-content once paper-menu closed HOT 1
- Remove usage of liquid and any other confusing irrelevant library from the docs
- With this being deprecated, what should we replace it with? HOT 2
- Add support for `renderInPlace` to `PaperSelect`
- [Embroider:MacrosConfig] the given config from '.../ember-get-config' for packageName 'undefined' is not JSON serializable. HOT 5
- Quest: Ember 4 + Octane HOT 1
- Button HOT 1
- How does the docs site get deployed? 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-paper.