Using ES6 import on survey-jquery - return Survey is not defined
See original GitHub issueAre 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
- we added a resolve alias
- 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:
- Created 6 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eladh hello! Did you try to import SurveyJS like that:
import * as Survey from 'survey-jquery';
?I am using survey-jquery@0.12.34.