liyanlong / nuxt-egg Goto Github PK
View Code? Open in Web Editor NEWNuxt.js + Egg FrameWork
Home Page: http://nuxt-egg.liylblog.com/
License: MIT License
Nuxt.js + Egg FrameWork
Home Page: http://nuxt-egg.liylblog.com/
License: MIT License
use NODE_ENV=production egg-bin dev
to run server.
it has two steps.
看之前的 commit,好像完全做成了运行时编译?
It's my mistake, The nuxt-egg framework has unused code.
old:
const Nuxt = require('nuxt')
new:
const { Nuxt, Builder } = require('nuxt')
nuxt.js will after the egg framework using
看了作者和天猪在egg 的 issue 下的讨论,追过来的,下载试了一把报错
[nuxt] Building error TypeError: Nuxt is not a constructor
at NuxtEggApplication.get nuxt [as nuxt] (/Users/liuml/Workspace/personal/nuxt-egg/node_modules/nuxt-egg/app/extend/application.js:8:20)
at /Users/liuml/Workspace/personal/nuxt-egg/node_modules/nuxt-egg/app.js:7:17
at Generator.next (<anonymous>)
at onFulfilled (/Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:65:19)
at /Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:54:5
at new Promise (<anonymous>)
at co (/Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:50:10)
at toPromise (/Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:118:63)
at next (/Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:99:29)
at onFulfilled (/Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:69:7)
at /Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:54:5
at new Promise (<anonymous>)
at co (/Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:50:10)
at toPromise (/Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:118:63)
at next (/Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:99:29)
at onFulfilled (/Users/liuml/Workspace/personal/nuxt-egg/node_modules/co/index.js:69:7)
refused to execute script from 'http://localhost:7001/_nuxt/vendor.bundle.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled
resolve: config
exports.securities = {
nosniff: {
match: /_nuxt/,
// or
enable: false
}
};
It's will be in the 0.1.5 to fixed!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.