Giter VIP home page Giter VIP logo

nuxtent-template's Introduction

Nuxtent Template

A nuxtjs and nuxtent template.

Installation

This is a site template for vue-cli.

$ vue init nuxt-community/nuxtent-template my-site
$ cd my-site
# install dependencies
$ npm install # Or yarn install

Make sure to use a version of vue-cli >= 2.1 (vue -V).

Usage

Development

# serve with hot reloading at localhost:3000
$ npm run dev

Go to http://localhost:3000

Production

# build for production and launch the server
$ npm run build
$ npm start

Generate

# generate a static project
$ npm run generate

For detailed explanation on how things work, checkout the nuxt.js and nuxtent docs.

nuxtent-template's People

Contributors

alexchopin avatar alidcast avatar andrevandal avatar antoine-brezillon avatar atinux avatar carlmathisen avatar dahrens avatar potato4d avatar qm3ster avatar wulthan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nuxtent-template's Issues

not found: * ~\content

Hello, I have the same error with nuxtent-template, and also with nuxtent-module\examples\markdown-components. At the dev & generate modes.

ERROR Failed to compile with 1 errors 12:44:41

This dependency was not found:

~\content in ./.nuxt/plugins.markdownComponents.3312f6eb.js

To install it, you can run: npm install --save ~\content

This question is available on Nuxt.js community (#c12)

Cannot run this example

 ERROR  Failed to compile with 1 errors                                 16:59:18

This dependency was not found:

* /Users/willin/Documents/websites/my-site/.nuxt/client.js in multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

To install it, you can run: npm install --save /Users/willin/Documents/websites/my-site/.nuxt/client.js

 OPEN  http://localhost:3000
  • node -v v10.9.0
  • os x 10.13
This question is available on Nuxt community (#c17)

"Object.entries is not a function" error

Receiving this error upon launch, which is preventing the page from displaying the desired content:

 WARNING  Compiled with 1 warnings                                     11:09:10 AM

 warning  in ./content/HelloWorld.comp.md

Module build failed: TypeError: Object.entries is not a function
    at mergeParserRules (/Users/Ernie.Smith/Documents/nuxtent/sfb/node_modules/nuxtent/dist/loader.js:39:43)
    at mdCompParser (/Users/Ernie.Smith/Documents/nuxtent/sfb/node_modules/nuxtent/dist/loader.js:95:31)
    at Object.module.exports (/Users/Ernie.Smith/Documents/nuxtent/sfb/node_modules/nuxtent/dist/loader.js:124:20)

 @ ./content \.comp\.md$
 @ ./.nuxt/plugins.markdownComponents.template.4020a60a.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=3000&path=/__webpack_hmr ./.nuxt/client.js
This question is available on Nuxt.js community (#c11)

Error: render function or template not defined in component: anonymous

Hi,

When I yarn generate, I have this message : TypeError: Nuxt is not a constructor

[root@xx]# yarn generate
yarn generate v0.27.5
$ HOST=myipvps PORT=3000 nuxtent generate
  nuxt:generate Generating... +0ms
/home/nginx/domains/xx.fr/public/xx/node_modules/nuxtent/bin/nuxtent-generate:58
const nuxt = new Nuxt(options)
             ^

TypeError: Nuxt is not a constructor
    at Object.<anonymous> (/home/nginx/domains/xx.fr/public/xx/node_modules/nuxtent/bin/nuxtent-generate:58:14)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/nginx/domains/xx.fr/public/xx/node_modules/nuxtent/bin/nuxtent:26:1)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Function.Module.runMain (module.js:609:10)
    at startup (bootstrap_node.js:158:16)
error Command failed with exit code 1.

here my package.json :

{
  "name": "stnetwork",
  "version": "1.0.0",
  "description": "Nuxt.js Content Site",
  "author": "",
  "private": true,
  "dependencies": {
    "@nuxtjs/axios": "latest",
    "nuxt": "1.0.0-alpha.3",
    "nuxtent": "^0.2.77"
  },
  "scripts": {
    "dev": "HOST=myipvps PORT=3000 nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "HOST=myipvps PORT=3000 nuxtent generate",
    "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
    "deploy": "push-dir --dir=dist --branch=gh-pages --cleanup",
    "precommit": "npm run lint"
  },
  "devDependencies": {
    "babel-eslint": "^7.1.1",
    "eslint": "^3.15.0",
    "eslint-config-standard": "^6.2.1",
    "eslint-loader": "^1.6.1",
    "eslint-plugin-html": "^2.0.0",
    "eslint-plugin-promise": "^3.4.1",
    "eslint-plugin-standard": "^2.0.1"
  }
}

my nuxtent.config.json :

module.exports = {
  content: {
    permalink: ':slug',
    page: '/_content',
    generate: [ // for static build
      'get', 'getAll'
    ],
    isPost: false
  },

  api: {
    baseURL: process.env.NODE_ENV === 'production'
      ? 'http://myipvps:3000'
      : 'http://myipvps:3000'
  }
}
This question is available on Nuxt.js community (#c6)

update template to latest nuxtent version

Hi,

When I generate static with the command yarn generate, I am able to access to the main page but I can't access to https://mydomain.com/hello-world, it's only work in dev with yarn run dev http://myipvps:3000/hello-world

my nuxtent.config.js :

module.exports = {
  content: {
    permalink: ':slug',
    routes: [
      {
        path: '/_content',
        method: 'get'
      }
    ],
    isPost: false
  },

  api: {
    baseURL: process.env.NODE_ENV === 'production'
      ? 'https://mydomain.com'
      : 'http://myipvps:3000'
  }
}

my package.json :

{
  "name": "stnetwork",
  "version": "1.0.0",
  "description": "Nuxtjs Buefy",
  "author": "",
  "private": true,
  "dependencies": {
    "nuxtent": "latest",
    "nuxt": "1.0.0-alpha.3",
    "@nuxtjs/axios": "latest"
  },
  "scripts": {
    "dev": "HOST=myipvps nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "nuxt generate",
    "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
    "deploy": "push-dir --dir=dist --branch=gh-pages --cleanup",
    "precommit": "npm run lint"
  },
  "devDependencies": {
    "babel-eslint": "^7.1.1",
    "eslint": "^3.15.0",
    "eslint-config-standard": "^6.2.1",
    "eslint-loader": "^1.6.1",
    "eslint-plugin-html": "^2.0.0",
    "eslint-plugin-promise": "^3.4.1",
    "eslint-plugin-standard": "^2.0.1"
  }
}

http://myipvps:3000/hello-world , that works
https://mydomain.com, that works
https://mydomain.com/hello-world, doesn't work (404 Page not found, nginx)

Thanks

This question is available on Nuxt.js community (#c3)

Unable to compile template

I tried to get this template running but alas, I'm unable to. I get this error:

 ERROR  Failed to compile with 1 errors                                                13:22:50

This dependency was not found:

* /home/karan/projects/nent-template/.nuxt/client.js in multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

To install it, you can run: npm install --save /home/karan/projects/nent-template/.nuxt/client.js

Any idea what's going on here?

This question is available on Nuxt.js community (#c13)

Template is broken

Hello. Awful starting experience I have.
First I notice bug in demo.
Then I tried to use starter locally, and it instantly throws me an error.

Nuxt.js Error:

Error: render function or template not defined in component: anonymous
This question is available on Nuxt.js community (#c2)

Page view has a Vue Warning, not displaying content from md

When loading hello-world/ page the .md content isn't displayed (shows just the title) and the inspector shows these errors:

[Vue warn]: Failed to mount component: template or render function not defined.
found in
--->
<Pages/Content.vue> at pages/_content.vue
at .nuxt/components/nuxt.vue
at layouts/default.vue

and

Failed to load resource: the server responded with a status of 500 (NuxtServerError) (hello-world)

This question is available on Nuxt.js community (#c7)

TypeError on initial install.

When I created a fresh project using the vue-cli command, the first thing I get after I run yarn build then yarn start is an TypeError.

Nuxt.js Error:

TypeError: inject is not a function
    at module.exports.__webpack_exports__.default (server-bundle.js:1373:3)
    at _callee$ (server-bundle.js:1088:20)
    at tryCatch (/home/giodamelio/tmp/nuxtent-test/node_modules/regenerator-runtime/runtime.js:65:40)
    at Generator.invoke [as _invoke] (/home/giodamelio/tmp/nuxtent-test/node_modules/regenerator-runtime/runtime.js:303:22)
    at Generator.prototype.(anonymous function) [as next] (/home/giodamelio/tmp/nuxtent-test/node_modules/regenerator-runtime/runtime.js:117:21)
    at step (server-bundle.js:228:30)
    at server-bundle.js:239:13
    at <anonymous>
This question is available on Nuxt.js community (#c5)

Fails on windows with TypeError

Getting error on fresh install

 WARNING  Compiled with 1 warnings                                                                                                                                                             16:55:03

 warning  in ./content/HelloWorld.comp.md

Module build failed: TypeError: Cannot read property 'Symbol(Symbol.iterator)' of null
    at getSection (C:\Users\Bayss\Downloads\my-site\node_modules\nuxtent\dist\loader.js:107:33)
    at Object.module.exports (C:\Users\Bayss\Downloads\my-site\node_modules\nuxtent\dist\loader.js:54:19)

 @ ./content \.comp\.md$
 @ ./.nuxt/dist.plugin.238a682c.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi webpack-hot-middleware/client?reload=true ./.nuxt/client.js

This is on a completely new/fresh install following the basic setup instructions.

System is Windows 10 (x64), Node 8.3.0, npm 5.3.0, vue-cli 2.8.2.

This question is available on Nuxt.js community (#c10)

Way to much ram usage and slow response if content is to large

Version

3

Reproduction link

http://infiniti.dinamo.mx

Steps to reproduce

On a large site (157 files on 7 content groups), run generate a

What is expected ?

Find a way to reduce the ram usage and improve build time

What is actually happening?

The memory usage goes up to 900mb and the local server is responding to slow so it takes to long to build the site

Additional comments?

This proyect is using the development branch as a submodule and now that it reaching it's final state broke the CD setup by exausting the memory all of the content files are used as components using the latest features offered by the new version.

This bug report is available on Nuxt community (#c16)

Documentation: Add complete configuration example

What problem does this feature solve?

To this moment, in my understanding, there are two API configuration parameters that are essential for making a successful build: baseURL and browserBaseURL. Also, as I understand it, those parameters mainly come from axios.

The current documentation only contains a browserBaseURL example showing the condition between static and non-static. But in my tests, this mostly isn't enough.

To that point, I couldn't make nuxtent running with local dev server, local nuxt generate and remote nuxt generate at the same time.
While I got local nuxt generate and local nuxt server running at some point, struggles begin when trying to do the same in production mode.

The documentation IMHO doesn't show all possibilities, I completely misunderstand how it should work or the module is broken in some way. As I think it's more a problem of the documentation on not a bug, I'm looking for more complete examples for the configuration.

What does the proposed changes look like?

  • Show examples involving baseURL and browserBaseURL.
  • Link to related Axios/Nuxt tutorials for configuration if this not in anyway related to the nuxtent module.
  • Add examples for local development, production deployment and for local and remote static generation. Especially in combination with isStatic and NODE_ENV.

Based on all the issues I've read through, it's not clear enough. I really would like to send a push request for this, but as you see, I struggle myself. So If you don't mind explaining this in more detail so I understand it, I'd love to send in a proposal for more clear documentation.

This feature request is available on Nuxt community (#c15)

500 Network error trying to view /hello-world

How to reproduce:

vue init nuxt-community/nuxtent-starter my-site
cd my-site
npm install
npm run dev

Go to localhost:3000 in browser and click on "See your first post". I get a 500 error Nuxt network error page:

screen shot 2017-07-24 at 7 49 19 am

The terminal output not very helpful indicating no errors:

screen shot 2017-07-24 at 7 50 20 am

Console also not super helpful to help debug issue:

screen shot 2017-07-24 at 7 50 58 am

I did not make any modifications to the project once I generated it via the vue-cli.

This question is available on Nuxt.js community (#c4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.