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.

How can i use Parsley in es6 module ?

See original GitHub issue

import Parsley from ā€˜parsleyjsā€™ new Parsley(ā€˜.simple_form.new_reservationā€™)

will raise

TypeError: __WEBPACK_IMPORTED_MODULE_4_parsleyjs___default.a is not a constructor
    at HTMLDocument.<anonymous> (reservation_new-645fe969d71eb258e7df.js:25997)
    at fire (reservation_new-645fe969d71eb258e7df.js:12496)
    at Object.fireWith [as resolveWith] (reservation_new-645fe969d71eb258e7df.js:12626)
    at Function.ready (reservation_new-645fe969d71eb258e7df.js:12845)
    at HTMLDocument.completed (reservation_new-645fe969d71eb258e7df.js:12861)
window.onerror @ VM711:1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

5reactions
marcandrecommented, Apr 9, 2020

Closing in favor of #1243

PS following thumbsdown: Closing doesnā€™t mean ignoring the issue; itā€™s simply a way to keep a single issue open instead of many duplicates šŸ¤·ā€ā™‚ļø

3reactions
xavianaxwcommented, Feb 14, 2018
import "parsleyjs";

$(el).parsley();
Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - How can i use Parsley in es6 module ? -
How can i use Parsley in es6 module ? ... import Parsley from 'parsleyjs' new Parsley('.simple_form.new_reservation'). will raise
Read more >
webpack - Has anyone been able to get parsley.js working ...
I have tried building a custom version as outlined on the jQuery GitHub repo as well as an online equivalent but both failed...
Read more >
parsleyjs
Start using parsleyjs in your project by running `npm i parsleyjs`. There are 34 other projects in the npm registry using parsleyjs.
Read more >
JavaScript modules - MDN Web Docs
In some JavaScript environments, such as Node.js, you can use bare names for the module specifier. This works because the environment canĀ ...
Read more >
parsley-oss/redux-form - npm package
A higher order component decorator for forms using Redux and React For more information about how to use this package see README.
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