Comments (14)
Hi!
Could you provide the content of you webpack config please ? Looks a lot like a webpack issue.
from idle-vue.
Here are all the files - the source is the cli
I found multiple users with the same or a simmilar problem but no solution yet.
from idle-vue.
webpack:-
var path = require('path')
var webpack = require('webpack')
const friendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
module.exports = {
entry: './src/main.js',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: 'build.js'
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
loaders: {
css: 'vue-style-loader!css-loader',
scss: 'vue-style-loader!css-loader!sass-loader'
}
}
},
{
test: /\.css$/,
use: ['vue-style-loader', 'css-loader']
},
{
test: /\.scss$/,
use: ['vue-style-loader', 'css-loader', 'sass-loader']
},
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
},
{
test: /\.(png|jpg|gif|svg)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]?[hash]'
}
}
]
}, plugins: [
new friendlyErrorsPlugin()
],
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'
}
},
devServer: {
historyApiFallback: true,
noInfo: true
},
performance: {
hints: false
},
devtool: '#eval-source-map'
}
if (process.env.NODE_ENV === 'production') {
module.exports.devtool = '#source-map'
// http://vue-loader.vuejs.org/en/workflow/production.html
module.exports.plugins = (module.exports.plugins || []).concat([
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}),
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
compress: {
warnings: false
}
}),
new webpack.LoaderOptionsPlugin({
minimize: true
})
])
}
from idle-vue.
Can you try to add
extensions: ['.js', '.vue']
in the resolve
property please ?
from idle-vue.
First- Thanks a lot!!
I added it to the webpack.main.js since it was present in the others already.
error does not change:
idle-vue/index.js - error line:3 unexpected token import.
from idle-vue.
Well, seems like error changed, since it's not related to file extension but with import
statement, thus probably ES6/Babel. What Babel preset do you use ?
from idle-vue.
Well i hope this is what you are looking for
{
"comments": false,
"env": {
"main": {
"presets": [
["env", {
"targets": { "node": 7 }
}],
"stage-0"
]
},
"renderer": {
"presets": [
["env", {
"modules": false
}],
"stage-0"
]
},
"web": {
"presets": [
["env", {
"modules": false
}],
"stage-0"
]
}
},
"plugins": ["transform-runtime"]
}
from idle-vue.
Can you try to remove the { "modules": false }]
property please ?
Also, what target/device/browser are you building for ?
from idle-vue.
same thing .. i use electron.
from idle-vue.
Which version ?
from idle-vue.
1.7.5
from idle-vue.
Please update idle-vue
to version 2.0.2
, it is fixed now.
from idle-vue.
It's not fixed yet.
from idle-vue.
Thanks @rajeshwar-fissionhq.
It should be fixed with 2.0.3
. Sorry for that.
from idle-vue.
Related Issues (20)
- Error: 'idleVue_onIdle' of undefined HOT 2
- How to pause or stop idle and start again HOT 2
- isAppIdle returns true the moment the app loads/Route refreshes HOT 2
- what is the actual timer in this? I don't understand HOT 2
- This project still maintained? HOT 2
- Difficulty dynamically setting idleTime HOT 3
- reference error: "window is not defined" when using in Nuxt.js HOT 2
- onActive() Hook works only on first tab
- Can the idleTime be set after initialisation? HOT 3
- isIdle for All Tabs HOT 5
- nuxt with idle-view ? HOT 2
- idle-vue seems to prevent reload nuxt app
- Vue 3 support HOT 9
- Tracking idle timeout when the user navigate away to a different domain and return back
- Inquiry about tracking the idle users HOT 1
- Not working when deployed to server. Anyone has this issue? HOT 4
- Update the value of the isIdle in vuex by calling a mutation.
- Does idle-vue support TypeScript?
- Is idle vue supports foe multiple tabs ? HOT 1
- vue3 compatible? Vue.extend is not a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idle-vue.