小编Jus*_*tin的帖子

未解决的依赖项汇总

我正在import file from 'file.json一个组件中进行操作,但是当我将其与 Rollup 捆绑在一起Vue时遇到了挑战。npm run build

它会在下面抛出此错误,并且文件不会被捆绑。

汇总错误

这就是我在 `rollup.config.js 中的内容

import vue from 'rollup-plugin-vue'; 
import buble from 'rollup-plugin-buble';
import resolve from 'rollup-plugin-node-resolve'
import json from 'rollup-plugin-json'

export default {
input: 'src/plugin.js',
output: {
    name: 'NaijaStatesLgas',
    exports: 'named',
},
plugins: [
    json(),
    resolve({
        jsnext: true,
        main: true,
        browser: true,
        extensions: [".js", ".json"],
        preferBuiltins: false,
    }),
    vue({
        compileTemplate: true, 
function
        }),
        buble(),
    ],
};
Run Code Online (Sandbox Code Playgroud)

如果有人能指出我正确的方向,我将不胜感激。

javascript json vue.js rollupjs

6
推荐指数
1
解决办法
5653
查看次数

调用成员函数where()对整数

我收到此错误:

调用成员函数where()对整数

当我运行此代码时:

DB::table('level_one_models')
  ->increment('followers', 1)
  ->where('active', '=', 1);
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

php laravel

1
推荐指数
1
解决办法
8825
查看次数

标签 统计

javascript ×1

json ×1

laravel ×1

php ×1

rollupjs ×1

vue.js ×1