Cannot find 'CapWatchContentView' in scope
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with the documentation through step 7, watchOS.swift, and the package entry added from node_modules. Compare the expected CapWatchContentView and package names with the project's integration setup; done means the watchOS app resolves CapWatchContentView and builds without the missing-module error.
Written by the indexing model from the issue text.
Description
I've followed the documentation up to step 7, my watchOS.swift file currently looks like this:
import SwiftUI
import WatchConnectivity
@main
struct watchOS_Watch_AppApp: App {
var body: some Scene {
WindowGroup {
CapWatchContentView()
.onAppear {
assert(WCSession.isSupported(), "This sample requires Watch Connectivity support!")
WCSession.default.delegate = WatchViewModel.shared
WCSession.default.activate()
}
}
}
}
I'm receiving the error:
Cannot find 'CapWatchContentView' in scope
I can confirm the capacitor/watch plugin exists in my package.json file. The only other thing I can think of that may (or may not) be relevant is that after I added the Capacitor Watch Swift Package from node modules, its name reads as iOS-capWatch-watch instead of CapWatch-Watch-SPM.
I have tried adding import CapacitorWatch above the @main statement, but this also throws the No such module 'CapacitorWatch' error.
- Dominant language
- Swift
- Stars
- 49
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ionic-team/CapacitorWatch
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
ionic-team/CapacitorWatch#45 ·
-
Capacitor 8Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
ionic-team/CapacitorWatch#46 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
ionic-team/CapacitorWatch#42 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
ionic-team/CapacitorWatch#41 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
ionic-team/CapacitorWatch#40 · 2 comments ·
All issues in ionic-team/CapacitorWatch
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
521xueweihan/HelloGitHub#3821 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
openwallet-foundation/multipaz#2040 ·
Maintainers usually reply within 1 day
-
area:build enhancement good first issue P2
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
uttrflow/uttrflow-swift#3212 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
vorssaint/vorssaint-utils#2481 ·
Maintainers usually reply within 1 day