Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Support for jquery #2627

Open
akbarexclusive opened this issue Mar 13, 2019 · 1 comment
Open

Support for jquery #2627

akbarexclusive opened this issue Mar 13, 2019 · 1 comment

Comments

@akbarexclusive
Copy link

ReferenceError: $ is not defined
at script.js:84:1 (https://github.com/facebook/prepack/wiki/PP0023)

@Yegorich555
Copy link

Yegorich555 commented Jan 2, 2020

You should inject $ as global object into js files. Prepack doesn't now anything about such variables...
Webpack contains webpack.ProvidePlugin for such cases or use const $ = require('jquery') . It's not prepack issue at all because prepack is NodeJs package and works under NodeJs. You should pay attention on this. It's not "browser-package" but NodeJS...

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

No branches or pull requests

3 participants