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.

Using ES6 import on survey-jquery - return Survey is not defined

See original GitHub issue

Are you requesting a feature, reporting a bug or ask a question?

bug / questions

What is the current behavior?

We integrate survey JQuery version with angularJS 1 + webpack infrastructure

  1. we added a resolve alias
  2. import ‘survery-jquery’ in the relevant point

we some how missing the proper injection point to how to expose Survey infrastructure via webpack.

in our case we getting Survey is not defined

What is the expected behavior?

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser:
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue):
  • surveyjs version:

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dmitrykurmanovcommented, Sep 11, 2017

@eladh hello! Did you try to import SurveyJS like that: import * as Survey from 'survey-jquery'; ?

0reactions
legrecocommented, Oct 27, 2017

I am using survey-jquery@0.12.34.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using ES6 import on survey-jquery - return Survey is not defined
We integrate survey JQuery version with angularJS 1 + webpack ... Using ES6 import on survey-jquery - return Survey is not defined #649....
Read more >
React giving "survey" not defined when survey.onComplete is ...
This code was not using a class with export when I found it. Seems the open source is instead using it to render...
Read more >
Avoid these issues when using new ECMAScript modules in ...
When you try to use one of these special variables you will get an error that “ReferenceError: __filename is not defined” if you...
Read more >
ES2020: `import()` – dynamically importing ES modules - 2ality
import () returns Promises, which means that you can use it via async functions (which are part of ECMAScript 2017) and get nicer...
Read more >
Import non-ESM libraries in ES Modules, with client-side ...
If you just import that file, you predictably get an error that module is not defined, not to mention there are no ESM...
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