yarnpkg

Error: jest-haste-map: @providesModule naming collision when using a local dependency

纵饮孤独 提交于 2019-12-01 06:26:46
I'm using a local module in package.json that also has react-native as a dependency. In my APP package.json : "react": "16.4.1", "react-native": "0.56.0", "react-native-services": "file:///Users/R01/Projects/react-native-services" In my react-native-services package.json : "react": "16.4.1", "react-native": "0.56.0" So when running react-native run-android the Metro Bundler throws: Looking for JS files in /Users/R01/Projects/RNApp /Users/R01/Projects/react-native-services Metro Bundler ready. Loading dependency graph...(node:72824) UnhandledPromiseRejectionWarning: Error: jest-haste-map:

Error: jest-haste-map: @providesModule naming collision when using a local dependency

断了今生、忘了曾经 提交于 2019-12-01 05:49:25
问题 I'm using a local module in package.json that also has react-native as a dependency. In my APP package.json : "react": "16.4.1", "react-native": "0.56.0", "react-native-services": "file:///Users/R01/Projects/react-native-services" In my react-native-services package.json : "react": "16.4.1", "react-native": "0.56.0" So when running react-native run-android the Metro Bundler throws: Looking for JS files in /Users/R01/Projects/RNApp /Users/R01/Projects/react-native-services Metro Bundler ready.

Node sqlite node-gyp build error: no member named 'ForceSet' in 'v8::Object'

家住魔仙堡 提交于 2019-12-01 03:46:34
I am getting a build error when trying to install global packages that depend on sqlite3. I am not quite sure how to go about debugging node build errors like this so any help is appreciated. From searching, I can tell that at least the xcode error is not the problem. I recently updated OSSierra and Node OSSierra: 10.13.4 Node: 10.0.0 Yarn: 1.6.0 The command I am running this time. I have experienced the same error doing a global install of other packages, so I don't think the exact npm package is important... $ yarn global add import-js The Error yarn global v1.6.0 (node:17489) [DEP0005]

Node sqlite node-gyp build error: no member named 'ForceSet' in 'v8::Object'

时光总嘲笑我的痴心妄想 提交于 2019-12-01 00:16:17
问题 I am getting a build error when trying to install global packages that depend on sqlite3. I am not quite sure how to go about debugging node build errors like this so any help is appreciated. From searching, I can tell that at least the xcode error is not the problem. I recently updated OSSierra and Node OSSierra: 10.13.4 Node: 10.0.0 Yarn: 1.6.0 The command I am running this time. I have experienced the same error doing a global install of other packages, so I don't think the exact npm

When installing packages with Yarn, what does “incorrect peer dependency” mean?

此生再无相见时 提交于 2019-11-30 10:43:04
I'm just cloned a repo , which recommends the use of Yarn to install dependencies. When I run yarn install , it seems to be okay, but it provides this warning: yarn install v0.20.3 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning "sass-loader@4.0.2" has incorrect peer dependency "node-sass@^3.4.2". [4/4] 📃 Building fresh packages... ✨ Done in 77.59s. I've looked online to find out exactly what "has incorrect peer dependency" means. But all I can find are reported issues on other repositories or questions about how to fix the problem. Can

How to use webpack with a monorepo (yarnpkg workspaces)

随声附和 提交于 2019-11-30 08:11:37
I'm using yarn workspaces where the root directory has a package directory with all my repos. Each repo has its own node_modules directory containing its dependencies. The root node_modules directory contains all the dev dependencies for the whole project as well as all other dev related things such as webpack.config files. Webpack uses hot module reload for the express server package. The problem I have is, how to configure webpack externals to exclude all node_modules directories through the whole project, not just in the root? webpack-node-externals doesn't seem to work given this scenario.

Should I commit yarn.lock and package-lock.json files?

ぃ、小莉子 提交于 2019-11-30 06:13:25
问题 We're using yarn for all our deterministic pkg installations but don't prevent the user from using npm - I'm guessing having both these files will cause issues however. Should one be added to your .gitignore dir? 回答1: Always commit dependency lock files in general As is covered elsewhere, dependency lock files, which are supported by many package management systems (e.g.: composer and bundler), should be committed to the codebase in end-of-chain projects - so that each individual trying to

Moving away from Bower (discontinued) to use Yarn/Npm instead (.Net Core MVC) VS2017

醉酒当歌 提交于 2019-11-30 05:36:17
I started working on a .Net Core application around 1 year ago. I used .Net Core to set up my project in visual studio and used Bower to manage my client side packages. It seems bower is being maintained/discontinued and the "people in charge" suggest using yarn or webpack instead. So my question is how do I start using yarn instead of bower ? (or npm if that is more appropriate) When I started my project I used bower from within the Visual Studio package manager by simply by typing: bower install <package-name> And it managed to install the files/directories within my wwwroot/lib/ folder. I

Application generated with JHipster 4 returning blank page on 8080, but not on 9000

二次信任 提交于 2019-11-30 03:23:57
I've create an application with JHipster v4. When I make a request on port 8080 it is returning a blank page. If I use yarn start , and I make a request to 9000 port, it is answering correctly. Any idea? I had the same issue with JHipster application bringing up the blank page on port 8080 when ran with ./mvnw in dev mode. I was able to resolve this by running: yarn install && yarn webpack:build After it finishes, the application shows normally in dev mode on port 8080. I had the same issue where on port 8080, it was returning nothing and on 9000 it gave correct page , after yarn install &&

Why wouldn't I use npm to install yarn?

人走茶凉 提交于 2019-11-29 23:09:58
In the blog post announcing yarn (an alternative npm client) they say, "The easiest way to get started is to run npm install -g yarn ". But if you go to the "install yarn" page in their docs , "npm install yarn" isn't listed on any of the platform-specific installation pages, and it's only offered as the third of three options on the "Alternatives" page. Furthermore when you npm install yarn it prints a deprecation warning, "It is recommended to install Yarn using the native installation method for your environment." So my question is if npm install is the easiest installation method, why isn