question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import / require Pjax results in empty object

See original GitHub issue

When importing pjax-api, the result is an empty object. This means that trying to initialize throw the “not a constructor” error. Also tried importing using the relative path, same thing. Any help appreciated!

import Pjax from 'pjax-api';
console.log(Pjax); // -> {}
new Pjax({}); // Error Pjax is not a constructor

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
falsandtrucommented, Oct 25, 2017

Opend a new issue #31 for Webpack. Please use there.

0reactions
puckeycommented, Oct 25, 2017

(Same problem for me - could this issue be reopened?)

Read more comments on GitHub >

github_iconTop Results From Across the Web

import / require always return empty object - javascript
On the server, I try to import npm pkg colors after I installed it. I tried every way but always got an empty...
Read more >
[Solved] require/import/Npm.require() all return empty object
Using import, require, Npm.require(). All result in empty objects. I'm using Meteor v1.8.1 and the latest @paypal/checkout-server-sdk as ...
Read more >
@sliphua/pjax - npm
Start using @sliphua/pjax in your project by running `npm i @sliphua/pjax`. There are no other projects in the npm registry using @sliphua/pjax.
Read more >
vQG - River Thames Conditions
Musica judia instrumental, Utrechtsedwarsstraat 41, Poorva napate, Preparada near me, Motokultivatorji cenik, Gen kamenici, Thoroughbred racing results nz, ...
Read more >
shifter - blazingly fast yui builder
It only imports the relevant settings required to build the module. ... shifter will attempt to merge them together, so your results may...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found