RichEditorView icon indicating copy to clipboard operation
RichEditorView copied to clipboard

Error: Type 'Bundle' has no member 'module'

Open Shubham1992 opened this issue 3 years ago • 5 comments

Error in line if let filePath = Bundle.module.url(forResource: "rich_editor", withExtension: "html") { webView.loadFileURL(filePath, allowingReadAccessTo: filePath.deletingLastPathComponent()) }

in RichEditorView Line 157.

Shubham1992 avatar Feb 04 '22 12:02 Shubham1992

Thanks for the report and apologies for the delay (I love exams!).

This should hopefully resolve the issue. https://stackoverflow.com/questions/64407950/swift-package-manager-type-bundle-has-no-member-module-error

I'm thinking it has something to do with Swift 5.3 wanting to use .copy first then .process. Not sure.

Andrew-Chen-Wang avatar Feb 22 '22 14:02 Andrew-Chen-Wang

@Shubham1992 did you figure this out?

lucychen0103 avatar Mar 13 '22 00:03 lucychen0103

Nvrmd, I got it working. Turns out that I was installing it incorrectly.

lucychen0103 avatar Mar 13 '22 02:03 lucychen0103

@lucychen0103 how did you solve the error? can you help out?

kishanbh avatar Jun 07 '22 10:06 kishanbh

@kishanbh I forgot what I did but I can try to help you out. Do you still need help? How are you installing it?

lucychen0103 avatar Jun 14 '22 07:06 lucychen0103