Why import js file does not take effect?

Quill is a Editor plug-in,chrome prompt Quill() function is not defined,must be js file not import success .
i put the js file in “client” floder. and i also tried put the js file in the “public” folder, use the following code to import: “script type=“text/javascript” src=”/quill.js"></script".

  1. Remove the <script /> tag you’re using.
  2. Move your quill.js file into a /client/compatibility folder.

Check out the Special directories (client/compatibility sub-section) for more info.

OR

  1. Remove the <script /> tag you’re using.
  2. Remove your quill.js file.
  3. Install quill from npm: meteor npm install --save quill

Thank you very much!!! :thumbsup:

1 Like