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
Latest versions of everything as of 12/26/19
Stack:
Meteor 1.8.2
Vue
Cordova
We are getting what appears to be build.js not found on native devices. HCP works as expected in browser.
initial app(ios and android) load works, but subsequent loads fail by returning the cordova index.html html as the build.js file content.
After doing research it seems that cordova will return the index.html file as the missing requested file.
The flagging error is "Uncaught SyntaxError: Unexpected token <" due to the compiler looking for javascript and receiving html.
This issue is non-device specific, not does server deploy or build affect it. Run on local, production server, and development server all have this behavior.
Have tried all the standards.
Meteor reset
NPM update
Verified codebase is matching to server build
etc...
Just curious if anyone else has run into this or has any solutions.
Latest versions of everything as of 12/26/19
Stack:
Meteor 1.8.2
Vue
Cordova
We are getting what appears to be build.js not found on native devices. HCP works as expected in browser.
initial app(ios and android) load works, but subsequent loads fail by returning the cordova index.html html as the build.js file content.
After doing research it seems that cordova will return the index.html file as the missing requested file.
The flagging error is "Uncaught SyntaxError: Unexpected token <" due to the compiler looking for javascript and receiving html.
This issue is non-device specific, not does server deploy or build affect it. Run on local, production server, and development server all have this behavior.
Have tried all the standards.
Meteor reset
NPM update
Verified codebase is matching to server build
etc...
Just curious if anyone else has run into this or has any solutions.
.meteor/packages
[email protected] [email protected] [email protected]
.meteor/cordova_-plugins
[email protected] [email protected] [email protected]
.meteor/versions
[email protected] [email protected] [email protected] [email protected] agile:[email protected] akryum:[email protected] akryum:[email protected] akryum:[email protected] [email protected] ardatan:[email protected] ardatan:[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] littledata:[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] mizzao:[email protected] mizzao:[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] momentjs:[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] tarang:[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
webpack.config
`var path = require('path')
var webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin');
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const meteorExternals = require('webpack-meteor-externals');
const clientConfig = {
entry: './client/main.js',
output: {
publicPath: path.resolve(__dirname, 'www'),
filename: 'build.js'
},
module: {
rules: [{
test: /.css$/,
use: [
'vue-style-loader',
'css-loader'
],
},
{
test: /.vue$/,
loader: 'vue-loader',
options: {
loaders: {}
// other vue-loader options go here
}
},
{
test: /.js$/,
loader: 'babel-loader',
exclude: /node_modules/
},
{
test: /.(png|jpg|gif|svg)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]?[hash]'
}
},
{
test: /.s(c|a)ss$/,
use: [
'vue-style-loader',
'css-loader',
{
loader: 'sass-loader',
options: {
implementation: require('sass'),
fiber: require('fibers'),
indentedSyntax: true // optional
}
}
]
}
]
},
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'
},
extensions: ['*', '.js', '.vue', '.json', '.scss', '.css', '.sass']
},
externals: [meteorExternals()],
devServer: {
contentBase: path.join(__dirname, 'public'),
historyApiFallback: true,
noInfo: true,
overlay: true,
hot: true
},
performance: {
hints: false
},
devtool: '#eval-source-map',
plugins: [
new webpack.HotModuleReplacementPlugin(),
new HtmlWebpackPlugin({
template: './client/main.html'
}),
new VueLoaderPlugin()
]
}
const serverConfig = {
entry: './server/main.js',
target: 'node',
externals: [meteorExternals()],
devServer: {
hot: true,
headers: {
"Access-Control-Allow-Origin": "",
"Access-Control-Allow-Origin": "http://",
"Access-Control-Allow-Origin": "https://",
'Access-Control-Allow-Headers': '',
'Access-Control-Allow-Methods': '*',
}
},
};
module.exports = [clientConfig, serverConfig];`
Dependencies and versions
"@babel/runtime": "^7.7.6", "@mdi/font": "^3.9.97", "babel-core": "^6.26.3", "babel-loader": "^7.1.5", "babel-preset-env": "^1.6.1", "babel-preset-stage-3": "^6.24.1", "bcrypt": "^3.0.7", "cross-env": "^5.2.1", "css-loader": "^2.1.1", "fibers": "^4.0.2", "file-loader": "^1.1.11", "html-webpack-plugin": "^3.2.0", "meteor-node-stubs": "~0.2.0", "npm": "^6.13.4", "sass": "^1.23.7", "sass-loader": "^7.3.1", "vue": "^2.6.11", "vue-loader": "^15.7.2", "vue-meta": "^0.5.3", "vue-meteor-tracker": "^1.0.3", "vue-router": "^3.1.3", "vue-style-loader": "^4.1.2", "vue-template-compiler": "^2.6.11", "vuetify": "^2.1.14", "vuex": "^3.1.2", "vuex-router-sync": "^5.0.0", "webpack": "^4.41.2", "webpack-dev-middleware": "^3.7.2", "webpack-hot-middleware": "^2.25.0", "webpack-meteor-externals": "0.0.4"
The text was updated successfully, but these errors were encountered: