dfinity / linkedup

An open professional network.
https://sdk.dfinity.org
Apache License 2.0
154 stars 43 forks source link

Update: import path of webpack #67

Open sakanosita opened 3 years ago

sakanosita commented 3 years ago

This PR will fix the build error of frontend. https://github.com/dfinity/linkedup/issues/66

Module not found: Error: Can't resolve 'ic:canisters/linkedup_assets'

Because there's no linkedup.js but linkedup.did.js.

$ ls .dfx/local/canisters/linkedup
index.js        linkedup.did        linkedup.did.d.ts   linkedup.did.js     linkedup.wasm

After I changed the path, npm run build was successful.

sakanosita commented 3 years ago

Umm, npm run build was successful, though. The page cannot show correctly.

0xbeekeeper commented 3 years ago

Umm, npm run build was successful, though. The page cannot show correctly.

how to fix this problem, please give me a solution, thank you.