#Cannot initiate ios

36 messages · Page 1 of 1 (latest)

shy pendant
#

Hi I am trying to initiate ios, but I get these errors. I can remove the allow list and the updater from the config file but I don't know how to resolve the others.

wraith duneBOT
#

Thank you for your message!

                1. Search the #1047150269156294677 forum for existing posts
                2. Search Github issues to see if this is a known issue
                3. Send the output of `tauri info`
                4. Provide reproduction steps for your issue
                5. Be polite and remember to follow the [Tauri Code of Conduct](https://github.com/tauri-apps/governance-and-guidance/blob/main/CODE_OF_CONDUCT.md)

                Once you've read this and taken the appropriate steps, react to this message
grand kayak
#

What's the output when you run "yarn tauri build" or "tauri build" in your terminal?

umbral violet
#

I had the same issue before; check the version of your tauri-utils and tauri-bundler compared to other tauri-related packages

shy pendant
#

All I did was npm create tauri-app@latest — —alpha

shy pendant
shy pendant
umbral violet
#

I think this happened because of the breaking changes the latest alpha versions of tauri packages introduce.

shy pendant
dusky saddle
#

tauri-codegen (which it complains about in the screenshot too) should be alpha.5 too

umbral violet
#

Fabian helped me when I had this issue before eheheheh

dusky saddle
#

you ended up downgrading to the prior alpha release, right?

umbral violet
#

yeah, but to alpha.4 (not prior alpha)

dusky saddle
shy pendant
#

I run the cargo update, but nothing changes

dusky saddle
#

In your cargo.toml file, remove shell-open from tauri's feature list, then run cargo update in your src-tauri dir again

#

just tried it out myself and yeah, the CTA template is a bit messed up

shy pendant
umbral violet
#

It's because they have been moved to other parts of Tauri, but the CTA template might have not been updated to reflect this

umbral violet
dusky saddle
umbral violet
#

oh ahaha eheheheh

shy pendant
#

@grand kayak @umbral violet @dusky saddle Sorry I am asking stupid question again. When I run dev, I got this error: Cannot find module '@tauri-apps/api/fs' or its corresponding type declarations for this line: import { BaseDirectory, writeTextFile, readTextFile, exists, createDir } from '@tauri-apps/api/fs'; I followed the installation guide here: https://github.com/tauri-apps/plugins-workspace/tree/v2/plugins/fs. But I get error: npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@tauri-apps%2Fplugin-fs - Not found
npm ERR! 404
npm ERR! 404 '@tauri-apps/plugin-fs@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url. Is there a way I can make fs works on ios? Same error also happen to this line: import { open } from '@tauri-apps/api/shell';

grand kayak
#

@shy pendant do you have @tauri-apps/api specified in the dependencies array in package.json?

shy pendant
grand kayak
#

yeah, @tauri-apps/plugin-fs does not exist... no idea

shy pendant
dusky saddle
#

we're focusing on the plugins rn though so hopefully that's just a matter of days

grand kayak
#

@shy pendant for now you could create a tauri command in rust (in main.rs) that performs the filesystem actions you require

dusky saddle
#

the plugin does exist, just not in the npm reg. you can still install it from git (also shown in the readme)

wraith jay