Comments (12)
I tried on my MacBookPro and got the same errors! (--unsafe-perm
also the same.)
So I would urge you to keep good backups of your node_modules
folder etc., because there might be something magical happening on your machine! π
The same bug has been reported on the cross-var
repo, but no solutions yet.
I tried a couple of fixes, but still can't get past the {loose: true}
error.
(For example, adding babel-plugin-transform-runtime
to our package.json
does get past the first error message, although I do appreciate that should not be the responsibility of this app! An alternative is to move it from devDependencies
into dependencies
in cross-var
's package.json
, and then do a similar fix for babel-plugin-transform-flow-strip-types
in babylon
's devDependencies
. For some reason npm isn't pulling in the devDependencies of child modules even when I try --dev
and NODE_ENV=development
.)
I notice you are pinned to cross-var=1.0.3
. I tried with the latest 1.1.0
but there was no improvement.
Babylon uses cross-env
which appears to be very popular (>900 dependents), so that might be an alternative worth trying in future.
from app.
I will have a try, so that you can get back to the Firefox addon. π
from app.
@joeytwiddle I believe this issue has been resolved with the most recent commit. I've tested on an Ubuntu box with the following specs:
- Ubuntu 16.04.4 LTS
- Node v9.10.1
- NPM v6.0.0
If you get a chance could you clone the most recent v1.4.0 to a new dir, then run npm install
and npm run build:chrome
and see if you get any errors?
I'm going to close this for now, I'll re-open if you still have problems after the latest commit.
If you do get around to creating a pull request to switch from using cross-var
to cross-env
that would be great, otherwise I'll add it to my list of dependencies to evaluate after v1.4.0 has been released. π
from app.
Out of interest, I tried with node v8.9.3 and npm v5.4.0. The installation and the build passed with no warnings or errors!
The build took 17 seconds, outputting 52 files.
Thanks for this nero120. The ability to compile it makes it much more likely that I will contribute in future!
from app.
Unfortunately there wasn't a package-lock.json
for the current version, it's something I'm currently addressing. Those errors you're getting are from dependencies as xBrowserSync doesn't directly depend on babel, nor use prepublish
scripts.
I'll have these dependency issues resolved when I release the next version, which will include a package-lock.json
. Apologies for the trouble!
(btw, the build should work both on Windows and Linux as I use both platforms)
from app.
Alright, good to know. I will do some googling and see if others have met this same error.
from app.
Just ran the following on my windows box:
npm install
npm run build:chrome
and the build ran successfully. Could be a linux issue, try running npm install --unsafe-perm
then re-run the build.
from app.
Great work @joeytwiddle! Are you up for replacing cross-var
with cross-env
and submitting a pull request? I've switched the default branch to v1.4.0
, would you be able to switch to this branch and then submit the change, if so I can test the change on my Windows machine and then incorporate it with the upcoming release.
from app.
Oh, I think I know why these packages can't find their dependencies.
It's because I am using the latest versions of npm and yarn, which flatten the module tree.
I suspect these packages are trying to load things specifically from deep node_modules folders, e.g. doing require('../node_modules/' + pluginName)
instead of just require(pluginName)
. That would have worked before flattening.
If there is no way to disable flattening in npm/yarn, I will try an older version of npm. (You never did tell me what version you are using, but I'm guessing it's not recent!)
It would be good to document in the README what is the recommended development environment (node and npm versions).
(I like using nvm
to have different versions of node installed on Linux/Mac.)
from app.
Hmm, I'm actually on Node LTS (v8.11.1) and npm v6.1.0 and I'm not having this issue, I need to give it a try on my laptop running Ubuntu. Since it is working on Windows with latest npm I would suspect it is more of a package issue as you previously mentioned rather than an inherent npm issue?
from app.
I decided to just do the replacement as it was quick enough, in 8c701c1.
from app.
Great stuff @joeytwiddle, thanks for testing it!
from app.
Related Issues (20)
- Sync tags with firefox native tag system
- CanΒ΄t sync from Microsoft Edge HOT 9
- Incompatibility with bookmark creation in Bookmark Sidebar extension
- Can the search function be full text matching instead of just matching the beginning?
- Manifest V3 HOT 2
- Chrome extension crashes
- using the browser extension on mobile does not work
- xBrowserSync not (yet) compatible with Microsoft Edge Workspaces?
- Waterfox freezes after installation, bookmark folders are duplicated
- Firefox browser on the phone does not work.
- android app missing from Google play store and removed from phone HOT 1
- Firefox unable to modify my bookmarks folder. Sync always undo modification.
- Users must click over and over to see all faqs
- Invalid Credentials Error
- Duplication of the same records
- Chrome incompatibility issues
- Disruption of sequencing
- Adding a button for Forced Update
- Background/timed sync repeatedly fails with "Error: Can't find bookmark for id. at checkForApiError" log messages
- TypeError: Cannot read properties of undefined (reading 'splice') at Object.addNewInXBookmarks cause sync error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app.