Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Remove gql-tools from package.json, get the following error #7

Open
nonfungibletunji opened this issue Oct 4, 2018 · 4 comments
Open

Comments

@nonfungibletunji
Copy link

ERROR Failed to compile with 49 errors 5:31:57 PM

error in ./node_modules/lumen-cms/lib/templates/gql/article/ArticleById.gql

Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.

#import '../content/contentFragment.gql'
| #import './articleFragment.gql'
|

@ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/lumen-cms/lib/templates/pages/articleEdit.vue?vue&type=script&lang=js& 203:0-64 432:25-43
@ ./node_modules/lumen-cms/lib/templates/pages/articleEdit.vue?vue&type=script&lang=js&
@ ./node_modules/lumen-cms/lib/templates/pages/articleEdit.vue
@ ./.nuxt/router.js
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

@dohomi
Copy link
Collaborator

dohomi commented Oct 5, 2018

@stunjiturner graphql-tag should be in place. Which version of Nuxt are you using?

@nonfungibletunji
Copy link
Author

nonfungibletunji commented Oct 5, 2018

"gql-tools": "0.0.15" is the problem

when I add it back does not install

Error running install script for optional dependency: "/Users/stunjiturner/Documents/Sightuary/groups/works+labs/dd/MochaProjects/Javascript/NUXT/pc-sight/node_modules/utf-8-validate: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /Users/stunjiturner/Documents/Sightuary/groups/works+labs/dd/MochaProjects/Javascript/NUXT/pc-sight/node_modules/utf-8-validate
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn /usr/bin/python
gyp info spawn args [ '/usr/local/Cellar/node/10.11.0/libexec/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/stunjiturner/Documents/Sightuary/groups/works+labs/dd/MochaProjects/Javascript/NUXT/pc-sight/node_modules/utf-8-validate/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/Cellar/node/10.11.0/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/stunjiturner/.node-gyp/10.11.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/stunjiturner/.node-gyp/10.11.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/Cellar/node/10.11.0/libexec/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/stunjiturner/.node-gyp/10.11.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/stunjiturner/Documents/Sightuary/groups/works+labs/dd/MochaProjects/Javascript/NUXT/pc-sight/node_modules/utf-8-validate',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../src/validation.cc:15:
In file included from ../node_modules/nan/nan.h:190:
../node_modules/nan/nan_maybe_43_inl.h:88:15: error: no member named 'ForceSet' in 'v8::Object'
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
~~~ ^
In file included from ../src/validation.cc:15:
../node_modules/nan/nan.h:816:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/stunjiturner/.node-gyp/10.11.0/include/node/node.h:174:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/stunjiturner/.node-gyp/10.11.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
attribute((deprecated(message))) declarator
^
In file included from ../src/validation.cc:15:
../node_modules/nan/nan.h:830:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/stunjiturner/.node-gyp/10.11.0/include/node/node.h:167:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/stunjiturner/.node-gyp/10.11.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
attribute((deprecated(message))) declarator
^
In file included from ../src/validation.cc:15:
../node_modules/nan/nan.h:844:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/stunjiturner/.node-gyp/10.11.0/include/node/node.h:160:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/stunjiturner/.node-gyp/10.11.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
attribute((deprecated(message))) declarator
^
In file included from ../src/validation.cc:15:
../node_modules/nan/nan.h:1447:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return scope.Escape(node::MakeCallback(
^
/Users/stunjiturner/.node-gyp/10.11.0/include/node/node.h:174:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/stunjiturner/.node-gyp/10.11.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
attribute((deprecated(message))) declarator
^
4 warnings and 1 error generated.
make: *** [Release/obj.target/validation/src/validation.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/Cellar/node/10.11.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.0.0
gyp ERR! command "/usr/local/Cellar/node/10.11.0/bin/node" "/usr/local/Cellar/node/10.11.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/stunjiturner/Documents/Sightuary/groups/works+labs/dd/MochaProjects/Javascript/NUXT/pc-sight/node_modules/utf-8-validate
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok"

@dohomi
Copy link
Collaborator

dohomi commented Oct 6, 2018

@stunjiturner there was a missing update of the starter-template. Please give it another spin, now you should be able to run your app instantly with following command:
vue init lumen-cms/starter-template YOUR_PROJECT_FOLDER
Please keep in mind that all dependencies are declared in the 'lumen-cms apollo module', so you should not update any Vue or Nuxt related fields inside of your package.json - this might lead to errors

@nonfungibletunji
Copy link
Author

nonfungibletunji commented Oct 6, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants