-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'createElement' of undefined #1222
Comments
What's happening is scope wrapper Mad workaround (then you'll need to add more):
|
@temoto |
I've seen this happen in commonjs / browserify environments before. The issue is that the scope wrapper doesn't live in
|
Same issue as #1210 |
thanks
2016-12-02 4:33 GMT+08:00 Josh Beckwith <notifications@github.com>:
… Same issue as #1210 <#1210>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1222 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWJzwZ6oBaSVR296Woi_F2ccaWo20LAAks5rDy8ggaJpZM4Jr4gt>
.
|
Why wouldn't one just use name |
I've created a PR here: #1244 |
This should work now on the |
I don't think this works properly, at least not when using webpack. I'm still getting the same TypeError. |
same to me... |
Can you provide a failing test case?
…On Aug 22, 2017 11:15 PM, "Lenic" ***@***.***> wrote:
same to me...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1222 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB1HfHF7pzK5idtd0HndYpfESoEzW39Jks5sa8NvgaJpZM4Jr4gt>
.
|
Hi, please do |
+1 to this. I'm pulling in Zepto with Browserify and am seeing this error. A new version published to NPM would be appreciated. |
i agree with positlabs's idea ,use window instead of this and it work when i using webpack!
|
I'm using webpack with Zepto 1.2.0. The browser console: Line 23 is the last line in the following snippet. (this, function(window) {
var Zepto = (function() {
var undefined, key, $, classList, emptyArray = [], concat = emptyArray.concat, filter = emptyArray.filter, slice = emptyArray.slice,
document = window.document,
elementDisplay = {}, classCache = {},
cssNumber = { 'column-count': 1, 'columns': 1, 'font-weight': 1, 'line-height': 1,'opacity': 1, 'z-index': 1, 'zoom': 1 },
fragmentRE = /^\s*<(\w+|!)[^>]*>/,
singleTagRE = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
tagExpanderRE = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
rootNodeRE = /^(?:body|html)$/i,
capitalRE = /([A-Z])/g,
// special attributes that should be get/set via method calls
methodAttributes = ['val', 'css', 'html', 'text', 'data', 'width', 'height', 'offset'],
adjacencyOperators = [ 'after', 'prepend', 'before', 'append' ],
table = document.createElement('table'), |
What's happening?
There is an error testing here: https://tonicdev.com/npm/zepto
The text was updated successfully, but these errors were encountered: