Closed jippy89 closed 2 years ago
Try using the same node version as in .nvmrc
(v10.4.0) or in examples/.nvmrc
(12.16.0)
Hi @hnrq, thanks for replying!
I already did that. I do install node
via nvm
and am aware of the use of .nvmrc
but I can't seem to do it.
Do you have any other solution? Or do you need any other info from me about my spec?
Got it, that's odd... I remember I had a similar error, but it worked once I used the right version, no other solutions from my side :/
Haha thanks thought, but I do notice that there's this line
[1] [15:40:15] No gulpfile found
I'm pretty sure it is what it meant. Maybe there's supposed to be a gulpfile
somewhere? It's weird that it seems that I'm the only one issueing this. I checked in StackOverflow, that this error literally mean what it is.
https://stackoverflow.com/questions/38937095/no-gulpfile-found
Which version of the lib are you using?
Here's a list of my package.json
@hnrq
{
"name": "@shopify/draggable",
"version": "1.0.0-beta.13",
"private": false,
"license": "MIT",
"description": "The JavaScript Drag & Drop library your grandparents warned you about.",
"author": "Shopify <dev@shopify.com>",
"homepage": "https://github.com/Shopify/draggable#readme",
"repository": "https://github.com/Shopify/draggable",
"contributors": [
{
"name": "Max Hoffmann",
"email": "max.hoffmann@shopify.com"
},
{
"name": "Curtis Dulmage",
"email": "curtis.dulmage@shopify.com"
}
],
"bugs": {
"url": "https://github.com/Shopify/draggable/issues"
},
"keywords": [
"shopify",
"draggable",
"drag-and-drop",
"es6"
],
"main": "./lib/draggable.bundle.js",
"types": "./index.d.ts",
"scripts": {
"start": "concurrently \"yarn watch\" \"cd examples && yarn && yarn start\"",
"build": "yarn build:production",
"watch": "node scripts/watch.js",
"prepare": "yarn build:development",
"prepublishOnly": "yarn build:production",
"lint": "eslint ./src ./scripts --max-warnings 0",
"esdoc": "esdoc -c esdoc.json",
"test": "jest --config config.json",
"test-ci": "jest --config config.json --coverage && codecov",
"build:development": "node scripts/build.js",
"build:production": "node scripts/build.js --production"
},
"files": [
"lib/**/*.js",
"index.d.ts"
],
"devDependencies": {
"babel-core": "^6.26.3",
"babel-jest": "^23.0.1",
"babel-loader": "^7.1.4",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-es2015-classes": "^6.24.1",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-shopify": "^16.5.0",
"codecov": "^3.0.2",
"concurrently": "^3.5.1",
"core-js": "^2.5.7",
"esdoc": "^1.1.0",
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
"esdoc-standard-plugin": "^1.0.0",
"eslint": "^4.19.1",
"eslint-loader": "^2.0.0",
"eslint-plugin-shopify": "^22.1.0",
"jest": "^23.1.0",
"webpack": "^4.12.0",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-cli": "^3.0.3"
},
"eslintConfig": {
"extends": "plugin:shopify/esnext",
"env": {}
},
"babel": {
"plugins": [
"transform-class-properties",
"transform-object-rest-spread",
"transform-es2015-modules-commonjs"
]
},
"publishConfig": {
"access": "public",
"@shopify:registry": "https://registry.npmjs.org"
}
}
Oh it seems that it's the same issue as this one #225. That leads me to #259. I tried testing the my current repo, but failed at step 5 of #259.
Ah, I looked again. So it's Window's problem after all.. I tried changing the script, instead of using the $npm_package_config_tools
, I replaced them with the real value and it worked!
"scripts": {
"clean": "rimraf dist bundle-report.html",
"views": "gulp views --require @babel/register --gulpfile tools",
"scripts": "gulp scripts --require @babel/register --gulpfile tools",
"styles": "gulp styles --require @babel/register --gulpfile tools",
"start": "gulp start --require @babel/register --gulpfile tools",
"build": "yarn run clean && gulp build --require @babel/register --gulpfile tools",
"build:prod": "NODE_ENV=production yarn run build",
"lint:scss": "stylelint './src/**/*.scss'",
"prettier:scss": "prettier-stylelint './src/**/*.scss' --write -q",
"lint:js": "eslint './src/**/*.js' './tools/**/*.js' --max-warnings 0",
"prettier:js": "yarn run lint:js --fix",
"prepublish": "yarn run build"
},
For support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
1. Apply either the
bug
orfeature-request
labelbug
2. Describe the
bug
orfeature
I tried running the example, I tried running
yarn install
andyarn start
in bothroot
folder andexamples
. Here's result of runningyarn; yarn start;
inroot
:3. If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
yarn; yarn start;
in Windows4. Please tell us about your environment: