Stencil Paper.loadTranslations Error - bigcommerce

When trying to run Stencil I am receiving the error below.
Debug: internal, implementation, error
TypeError: Uncaught error: self.assembler.getTranslations is not a function
at Paper.loadTranslations (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/#bigcommerce/stencil-paper/index.js:137:20)
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/#bigcommerce/stencil-paper/index.js:62:18
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/async/lib/async.js:718:13
at async.forEachOf.async.eachOf (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/async/lib/async.js:233:13)
at _parallel (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/async/lib/async.js:717:9)
at Object.async.parallel (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/async/lib/async.js:731:9)
at Paper.loadTheme (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/#bigcommerce/stencil-paper/index.js:60:11)
at respond (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/server/plugins/renderer/responses/pencil-response.js:29:15)
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/server/plugins/renderer/renderer.module.js:49:18
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/server/plugins/renderer/renderer.module.js:246:24
My setup is as follows:
MacOS 10.11.5
NVM 0.31.0
Node 4.4.0
Stencil 1.3.5
I have tried a fresh install of NVM and Node by first uninstalling NVM and following the guide at https://stencil.bigcommerce.com/docs/installing-and-launching-stencil-1 end to end. This has not resolved the error and I cannot run stencil.
Has anyone else encountered this issue or have a solution?

If you pull down the latest version of Stencil (just deployed in the last couple hours), you should have a fix for this. It was an issue introduced in a previous (recent) release.
npm install -g bigcommerce/stencil-cli
That should pull the update.

Related

Problem with BigCommerce Stencil CLI - node-fibers issue

Yesterday I updated my node from 12.22.1 to 14.14.0 and got some issues. Then I returned the version, but the problem still persists.
What I have right now:
npm - v 6.14.8, nvm version 1.1.9, node - 14.14.0. I use VSCode 1.70.2 on Windows 10. Dependencies from package.json for stencil : #bigcommerce/stencil-utils": "^6.8.1",
In the beginning when I tried to stencil start, I got:
[Screen 1 with loader.js module error. Can`t find stencil.js][1]
Then I install npm install #bigcommerce/stencil-cli --global --force
and I got a needed module stencil.js in the path from the picture above. But then I receive next problem:
$ stencil start
## There is an issue with `node-fibers` ##
`C:\ProgramData\nvm\v14.14.0\node_modules\#bigcommerce\stencil-cli\node_modules\fibers\bin\win32-x64-83\fibers.node` is missing.
I tried to npm install fibers --global, but it always shows me this error
[Error 2][2]
I don`t know what to do and would be very appreciative if you can help me with this.
Thank you
[1]: https://i.stack.imgur.com/SRHyV.png
[2]: https://i.stack.imgur.com/Qf2Q9.png

Warning: Invalid version react-native#0.64.2 for expo sdkVersion 43.0.0. Use react-native#0.64.3

I am working on an expo project and everything is working fine, but I began to get a warning message when android is building as
Warning: Invalid version react-native#0.64.2 for expo sdkVersion 43.0.0. Use react-native#0.64.3
The app is still running fine but I don't how to fix this error yet and I want to know if it won't cause an issue later.
I have tried to run npx react-native upgrade 0.64.3 but it didn't work, I got this error
info Fetching diff between v0.64.2 and v0.64.3... error Fetch request
failed with status 404: 404: Not Found. error Failed to fetch diff for
react-native#0.64.3. Maybe it's not released yet?
changing the version of react-native manually in the package.json and run expo install worked for me
I use the expo doctor command it allows diagnose issues with the project.
I would recommend using the expo upgrade command. It upgrades the project packages and config for the given SDK version.
More to find here.
I just faced the same issue. Basically it's telling you should use a higher version of your react-native. I solved it just by updating it to the specified version.
npx react-native upgrade 0.64.3
More info here.
Cheers,
If as in my case one need a specific version of react-native, let's say older because some legacy dependencies in a particular project that for some reason can't be upgrade, then change the version in the package.json won't work.
What worked as the cli suggested is to use:
expo doctor --fix-dependencies
That installed the correct lower version of react-native
To find out actual problems run this command :
expo doctor
To solve all problems regarding package conflicts run this command:
expo doctor --fix-dependencies
Use sudo on Unix based OS if you have permission issue to run those commands.
To solve the error, I used the below command:
npm install react-native-clean-project --save-dev
It is a library that allows us to resolve conflicts.
This library is added to your dependencies.
This handles the problem and if it is not the case add this command:
react-native clean-project-auto

React Native Fails To Start Server With Error In #react-native-community/cli/build/commands/doctor/healthchecks/index.js

I just created a brand new React Native project, and I can't get it to run. The server always fails on the following:
node_modules/react-native/node_modules/#react-native-community/cli/build/commands/doctor/healthchecks/index.js:48
} catch {}
^
SyntaxError: Unexpected token {
The only thing I've found on this issue is this thread, which ends with people saying to post this question on Stackoverflow, hence why I'm here. I've tried the usual: upgrading node versions, removing node_modules and reinstalling, restarting my machine, all to no avail. I even delved into the code to see if I could figure out what's going on, but nothing jumped out at me.
My hope is that others have run into this with new React Native projects and that someone can help me resolve it. Any suggestions are welcome. Thanks!
Sigh.... Well after struggling with this for a day I found the workaround was to run npx react-native start in one console and then run npx react-native run-ios in another. I was just trying to do the latter by itself (which always worked in the past), and I guess that doesn't work anymore.
Probably your node and/or npm version is to old. Check by npm -v and node -v and update to latest version, or suggesting by react-native crew in dependencies from node site. Or if you use nvm try:
nvm install 16.14.0 && nvm alias default 16.14.0 && nvm use 16.14.0
Note that, this is for specific version. For latest, type:
nvm install --lts --latest-npm
nvm use x.x.x //latest installed version
This problem is due to node version. Upgrade your node verion above 12. It will solve the problem.
Use can either use nvm or directly install the node
if you are using android studio start it with command line
like this cd /path/to/android-studio/bin
then studio.sh make sure its executable

Expo keeps crashing with error message - dyld: Symbol not found: _FSEventStreamCreate Abort Trap 6

Expo was working fine until I did an npm install native-base --save and it keeps crashing every time I try to start it. I'm on Mac and have am using my real mobile devices to view the changes in my project.
I've uninstalled the native-base but am not sure how to replace the missing files.
Refer to error message screenshot here
Managed to find a solution for now (thanks to #brentvatne).
I updated the packages, including node:
brew update
brew upgrade node
And when I started Expo, another error came up - EMFILE: too many open files, watch at FSEvent.FSWatcher._handle.onchange
The error is caused by Watchman, to which I resolved it with:
brew install watchman

NPM Error: EPERM: operation not permitted. Tarball data for <package> seems to be corrupted

I've been trying to create a new angular app with the cli, but I keep getting this error.
At first I thought it was something related to the version of cli I had installed( the latest one), so I uninstalled it and tried with the same version(6.0.8) that is used in the course I'm following along, but I get the same error :
Do you have any idea how I can figure out what is causing this issue?
Is there any log I can check?
I'm using :
Node: v8.11.3
Npm: 6.4.1
Windows 10 Pro.
I resolved it using this command:
npm install --registry https://registry.cnpmjs.org