You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried importing i18nextify directly into JavaScript as suggested here instead of using <script> tag and the build apparently finished successfully.
Is it possible that resolver fails to find a dependency for script added via HTML tags, but works correctly when a script is added via import directly into index.js?
I don't get that error with your code snippet. Please provide a full reproduction.
Kinda strange, because I tried reproducing it myself by reverting to import via <script>, but now it builds as usual in both cases.
I did many different things this weekend (including a minor Linux core upgrade), so I can't pinpoint what could have possibly fixed that. Sorry that I can't be of more help.
🐛 bug report
Building a static site with i18nextify fails if it is added via <script> tag into
index.html
.🎛 Configuration (package.json)
.parcelrc :
🤔 Expected Behavior
Prod version (parcel build) works similarly to dev version.
😯 Current Behavior
npm run dev
works as expected, running the dev version.npm run build
, however, doesn't.The build fails with an error:
adrai pointed out that dependency chain seems to be in order, so the problem is supposedly with Parcel's resolver.
💁 Workaround
I've tried importing i18nextify directly into JavaScript as suggested here instead of using
<script>
tag and the build apparently finished successfully.Is it possible that resolver fails to find a dependency for script added via HTML tags, but works correctly when a script is added via
import
directly into index.js?💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: