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
{{ message }}
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
If env is provided by nativescript-dev-webpack, I guess this error would be fixed by upgrading to the latest version of nativescript-dev-webpack that includes the mentioned pull request.
Ran into the same problem with different steps to reproduce. We use fastlane to do our appstore publishes and so for CI on travis we only use tns prepare ios / android and then use the fastlane tools to build using the typical xcode build steps. I worked around the issue, but it's definitely requiring manual intervention.
Version
2.0.0
Platform and OS info
tns-ios 4.2.0
tns 4.2.4
macOS High Sierra
Steps to reproduce
vue init nativescript-vue/vue-cli-template test
tns build ios --bundle --release --env.production --forDevice
What is expected?
The app should run
What is actually happening?
The app crashes immediately after start with this error
Cause
The variable
hmr
has value"undefined"
(type string!) and thus is truthy when not specifying--hmr
. So this check:vue-cli-template/template/webpack.config.js
Line 262 in c03e630
is always true and HotModuleReplacementPlugin gets injected no matter what.
Workaround
Add this code before destructuring
env
in webpack.config.js:Not sure if this is by design or actually a bug somewhere else.
Related
The text was updated successfully, but these errors were encountered: