-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navi scripts failing to build. #65
Comments
it seems has some common points with this issue。 |
@jamesknelson I think you miss to require add this line to the of the
|
@efukela Looking at the original error, the problem here is that navi-scripts executes all the scripts in index.html, but doesn't seem to understand how to fetch To fix this, we'd need to enable fetching of remote files during build here: https://github.com/frontarm/navi/blob/master/packages/navi-scripts/lib/createScriptRunner.js#L46 I'm not exactly sure if this is a good idea from a security perspective though. Another option would be to move you jQuery import out of index.html, and into a conditional import within the script itself. |
@wulucxy could you submit a separate PR with the change that fixed navi-scripts for you? I'd be happy to merge it. |
Going to close this issue for now as I don't think that reading in jquery from a <script> tag is something that navi-scripts really needs to support. |
Hi, I have a index.html file in the public folder, which consists some jquery plugins and what not, navi seems to get stuck while building the application and assumes the jquery plugins are in my build folder, when i'm building the project, although I have defined the script tags.
For example, I'm using script tags like this.
<script src="//code.jquery.com/jquery-3.3.1.min.js"></script>
But when I build, I get an error like
My navi scripts config is below.
Any ideas what can be causing this?
The text was updated successfully, but these errors were encountered: