Skip to content
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: bufferEs6.hasOwnProperty is not a function | rollup #8

Open
dasharup opened this issue Dec 3, 2019 · 5 comments
Open

TypeError: bufferEs6.hasOwnProperty is not a function | rollup #8

dasharup opened this issue Dec 3, 2019 · 5 comments

Comments

@dasharup
Copy link

dasharup commented Dec 3, 2019

issue also rasied on rollup, rollup/rollup#3096

/home/codxe/Desktop/imp-apps/dashblogs/deploy/bundle.js:5908
  if (!bufferEs6.hasOwnProperty(key)) continue
                 ^

TypeError: bufferEs6.hasOwnProperty is not a function
    at Object.<anonymous> (/home/codxe/Desktop/imp-apps/dashblogs/deploy/bundle.js:5908:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

can you change the way you are creating the Object, so rollup can pass on that

@dengnan123
Copy link

any update?

@paulgrenning
Copy link

Also curious as I have the same issue.

@bernardoadc
Copy link

I had the same error in rollup, solved by using

...
 plugins: [
      resolve({
        ...
        preferBuiltins: false
      }),
      ...

@lemoustachiste
Copy link

lemoustachiste commented Jul 23, 2021

has anyone figured out how to solve this issue without disabling the preferBuiltins property? It does not look like a viable solution for me

@YoguiSan
Copy link

has anyone figured out how to solve this issue without disabling the preferBuiltins property? It does not look like a viable solution for me

Also curious, for what I'm doing that solution does not help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants